Ardillo\Form
On this page
Description
Ardillo base Form class.
Properties
Form::$app 
Associated App instance
- type: 
App 
Methods
Form::__construct() 
Creates a new Form instance
Form::isValid() 
Returns whether the form is valid or not
Returns bool
Form::getPadded() 
Returns whether the form is padded or not
Returns bool
Form::setPadded(bool $padded) 
Sets whether the form is padded or not
bool $padded:
Form::append(string $label, Control $child, bool $stretchy) 
Appends a child control to the form
string $label: The label to be usedControl $child: The child control to be appendedbool $stretchy: Whether the child should be stretched or not
Form::delete(int $index) 
Deletes a child at a given index
int $index: The index of the child to be deleted
Form::childrenCount() 
Returns the current children count
Returns int
Control::disable() 
Disables the control
Control::enable() 
Enables the control
Control::isEnabled() 
Returns whether the control is enabled or not
Returns bool
Control::isEnabledToUser() 
Returns whether the control is enabled to the user or not
Returns bool
Control::hide() 
Hides the control
Control::show() 
Shows the control
Control::isTopLevel() 
Returns whether the control is a top-level control or not
Returns bool
Control::isVisible() 
Returns whether the control is visible or not
Returns bool