\BootstrapToggleField
Two masked input fields, checks for matching passwords.
Optionally hides the fields by default and shows
a link to toggle their visibility.
Synopsis
class BootstrapToggleField
extends CheckboxField
{
- // members
- public FieldList $children;
- // methods
- public void __construct()
- public void setFieldList()
- public FieldList FieldList()
- public FieldList getChildren()
- public void setChildren()
- public void setForm()
- public void collateDataFields()
- public void isComposite()
- public void fieldByName()
- public void push()
- public void insertBefore()
- public void insertAfter()
- public void removeByName()
- public void replaceField()
- public void rootFieldList()
- public CompositeField performReadonlyTransformation()
- public CompositeField performDisabledTransformation()
- public int fieldPosition()
- public void makeFieldReadonly()
- public void Fields()
- public void validate()
Hierarchy
Extends
- CheckboxField
Members
public
- $children
—
FieldList
Child fields
Methods
public
- __construct()
- FieldList() — Returns all the sub-fields, suitable for <% loop FieldList %>
- Fields()
- collateDataFields() — Add all of the non-composite fields contained within this field to the list.
- fieldByName()
- fieldPosition() — Find the numerical position of a field within the children collection. Doesn't work recursively.
- getChildren() — Accessor method for $this->children
- insertAfter()
- insertBefore()
- isComposite()
- makeFieldReadonly() — Transform the named field into a readonly feld.
- performDisabledTransformation() — Return a disabled version of this field. Keeps the composition but returns disabled versions of all the child {@link FormField} objects.
- performReadonlyTransformation() — Return a readonly version of this field. Keeps the composition but returns readonly versions of all the child {@link FormField} objects.
- push() — Add a new child field to the end of the set.
- removeByName() — Remove a field from this CompositeField by Name.
- replaceField()
- rootFieldList()
- setChildren()
- setFieldList() — Add Fields to the Toogle Field
- setForm()
- validate()