\BootstrapOptionsetToggleField
Toggle Formfields by Optionset Selection
<b>Usage</b>
<code>
new OptionsetField(
$name = "Foobar",
$title = "FooBar's optionset",
$source = array(
"1" => array("Title" => "Option 1", "FieldList" => new FieldList(FIELDS)),
"2" => array("Title" => "Option 2", "FieldList" => new FieldList(FIELDS)),
),
$value = "1"
);
</code>
Synopsis
class BootstrapOptionsetToggleField
extends OptionsetField
{
- // members
- public FieldList $children;
- // methods
- public void setSource()
- public void Options()
- 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()
- protected void AlternateFields()
- public void validate()
Hierarchy
Extends
- OptionsetField
Members
public
- $children
—
FieldList
Child fields
Methods
protected
public
- Fields()
- Options()
- 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()
- setForm()
- setSource()
- validate()