Download the PHP package nswdpc/silverstripe-details-field without Composer
On this page you can find all versions of the php package nswdpc/silverstripe-details-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nswdpc/silverstripe-details-field
More information about nswdpc/silverstripe-details-field
Files in nswdpc/silverstripe-details-field
Package silverstripe-details-field
Short Description Composite form field rendered as an HTML details tag, with child fields
License BSD-3-Clause
Informations about the package silverstripe-details-field
Details field for Silverstripe
This module implements a FormField for Silverstripe using the HTML Details element.
The field is a CompositeField allowing zero or more child fields to be displayed when the element is in an open state.
It's useful for containing long selection fields and/or optional information not required in a form submission.
Usage
After module installation, use the DetailsField in code:
Adding child fields
See tests/DetailsFieldTest for more.
Example rendered field
Provide some optional information
A field description
Extras
setTitle
is aliased to thesetSummary
method, both set thetitle
property value on the field- You can set a standard
FormField
description, right title and field validation message IsOpen
andSummary
return those property values, for use in templates- As the
<summary>
element can contain certain HTML, you can provide a DBHTMLVarchar field as the value to setTitle or setSummary - When the field or a child field has a validation message, the details element will be open by default
Installation
License
BSD-3-Clause
Maintainers
Bugtracker
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
Security
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.