LeKoala\Blocks\BuildableFieldList
A field list that can create it its fields
Synopsis
class BuildableFieldList
extends FieldList
{
- // members
- protected $defaultTab = NULL;
- protected $currentTab = NULL;
- protected FieldGroup $currentGroup = NULL;
- protected string $i18nEntity = 'Global';
- protected boolean $placeholderAsLabel = false;
- // methods
- public static $this fromFieldList()
- protected string normalizeTitle()
- protected FormField applyAttributes()
- protected void pushOrAddToTab()
- public GridField getGridField()
- public FormAction addAction()
- public FormField pushField()
- public FormField addField()
- public HeaderField addHeader()
- public LiteralField addLiteral()
- public ReadonlyField addReadonly()
- public AlertField addAlert()
- public UploadField addUpload()
- public FileField addFile()
- public FilePondField addFilePond()
- public FilePondField addSingleFilePond()
- public InputMaskField addInputMask()
- public CheckboxField addCheckbox()
- public CheckboxSetField addCheckboxset()
- public FieldGroup addFieldGroup()
- public CompositeField addCompositeField()
- public HiddenField addHidden()
- public PasswordField addPassword()
- public EmailField addEmail()
- public DropdownField addDropdown()
- public OptionsetField addOptionset()
- public YesNoOptionsetField addYesNo()
- public DateField addDate()
- public InputMaskDateField addDateMask()
- public InputMaskNumericField addNumericMask()
- public InputMaskCurrencyField addCurrencyMask()
- public InputMaskDateField addIntegerMask()
- public TextField addText()
- public PhoneField addPhone()
- public NumericField addNumeric()
- public TextareaField addTextarea()
- public HTMLEditorField addEditor()
- public $this group()
- public void getI18nEntity()
- public $this setI18nEntity()
- public void getCurrentTab()
- public $this setCurrentTab()
- public void getDefaultTab()
- public $this setDefaultTab()
- public boolean getPlaceholderAsLabel()
- public $this setPlaceholderAsLabel()
Hierarchy
Extends
- SilverStripe\Forms\FieldList
Members
protected
- $currentGroup — SilverStripe\Forms\FieldGroup
- $currentTab — string
- $defaultTab — string
- $i18nEntity
—
string
The entity scope that will be used to attempt translation - $placeholderAsLabel — boolean
Methods
protected
- applyAttributes() — Apply attributes to a form object
- normalizeTitle() — Slightly improve way to normalize titles in forms
- pushOrAddToTab()
public
- addAction() — Quickly add an action to a list
- addAlert() — TODO: extract
- addCheckbox()
- addCheckboxset()
- addCompositeField()
- addCurrencyMask()
- addDate()
- addDateMask()
- addDropdown()
- addEditor()
- addEmail()
- addField() — Add a field to the list
- addFieldGroup()
- addFile()
- addFilePond()
- addHeader()
- addHidden()
- addInputMask()
- addIntegerMask()
- addLiteral()
- addNumeric()
- addNumericMask()
- addOptionset()
- addPassword()
- addPhone()
- addReadonly()
- addSingleFilePond()
- addText()
- addTextarea()
- addUpload()
- addYesNo() — TODO: extract
- fromFieldList() — Returns an instance of BuildableFieldList from a FieldList
- getCurrentTab() — Get the value of currentTab
- getDefaultTab() — Get the value of defaultTab
- getGridField()
- getI18nEntity() — Get the value of i18nEntity
- getPlaceholderAsLabel() — Get the value of placeholderAsLabel
- group() — Group fields into a column field
- pushField() — Push a FormField already defined
- setCurrentTab() — The current tab
- setDefaultTab() — The default tab if there is no current tab
- setI18nEntity() — Set the value of i18nEntity
- setPlaceholderAsLabel() — Set the value of placeholderAsLabel