Property | Type | Description | |
---|---|---|---|
$openGroup | Former\Form\Group | The custom group that is open | |
$opened | boolean | Whether a custom group is opened or not |
Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Container\Container | The Container | |
$append | array | An array of elements to append the field | |
$element | string | The group's element | |
$help | array | The group help | |
$label | HtmlObject\Element | The group label | |
$prepend | array | An array of elements to preprend the field | |
$raw | boolean | Whether the field should be displayed raw or not | |
$state | string | The current state of the group | |
$validations | array | The field validations to be checked for errors |
Method | Description | |
---|---|---|
__construct ( Illuminate\Container\Container $app, string $label, $validations = null ) | Creates a group | |
__toString ( ) : string | Prints out the opening of the Control Group | |
addGroupClass ( string $class ) | Set a class on the Group | |
append ( ) | Append elements to the field | |
appendIcon ( string $icon, array $attributes = [], $iconSettings = [] ) | Append an icon to a field | |
blockHelp ( string $help, array $attributes = [] ) | Add an block help | |
contents ( string $contents ) : string | Set the contents of the current group | |
getErrors ( ) : string | Get the errors for the group | |
getFormattedLabel ( ) : string | null | Get the formatted group label | |
help ( string $help, array $attributes = [] ) | Alias for inlineHelp | |
inlineHelp ( string $help, array $attributes = [] ) | Add an inline help | |
isRaw ( ) : boolean | Check if the current group is to be displayed or not | |
open ( ) : string | Opens a group | |
prepend ( ) | Prepend elements to the field | |
prependIcon ( string $icon, array $attributes = [], $iconSettings = [] ) | Prepends an icon to a field | |
raw ( ) | Disables the control group for the current field | |
setLabel ( string $label ) | Adds a label to the group | |
state ( string $state ) | Set the state of the group | |
wrap ( string $contents, string $label = null ) : string | Wraps content in a group | |
wrapField ( |
Wrap a Field with the current group |
Method | Description | |
---|---|---|
getHelp ( ) : string | Prints out the current help | |
getLabel ( string $field = null ) : string | Prints out the current label | |
placeAround ( array $items, string $place ) | Place elements around the field | |
prependAppend ( Field $field ) : string | Format the field with prepended/appended elements |
public __construct ( Illuminate\Container\Container $app, string $label, $validations = null ) | ||
$app | Illuminate\Container\Container | |
$label | string | Its label |
public __toString ( ) : string | ||
return | string | A control group opening tag |
public addGroupClass ( string $class ) | ||
$class | string | The class to add |
public appendIcon ( string $icon, array $attributes = [], $iconSettings = [] ) | ||
$icon | string | The icon to prepend |
$attributes | array | Its attributes |
public getFormattedLabel ( ) : string | null | ||
return | string | null |
public inlineHelp ( string $help, array $attributes = [] ) | ||
$help | string | The help text |
$attributes | array | Facultative attributes |
protected placeAround ( array $items, string $place ) | ||
$items | array | An array of items to place |
$place | string | Where they should end up (prepend|append) |
protected prependAppend ( Field $field ) : string | ||
$field | Field | The field to format |
return | string | Field plus supplementary elements |
public prependIcon ( string $icon, array $attributes = [], $iconSettings = [] ) | ||
$icon | string | The icon to prepend |
$attributes | array | Its attributes |
protected Container,Illuminate\Container $app | ||
return | Illuminate\Container\Container |
protected array $append | ||
return | array |
protected Element,HtmlObject $label | ||
return | HtmlObject\Element |
public static Former\Form\Group $openGroup | ||
return | Former\Form\Group |
public static bool $opened | ||
return | boolean |
protected array $prepend | ||
return | array |
protected bool $raw | ||
return | boolean |
protected array $validations | ||
return | array |