class BootstrapCell

Class BootstrapCell.

Represents a row-column pair = table cell in Bootstrap grid system. This is the part with col- - class. Only one component can be present.

Traits

SmartObject
Trait BootstrapContainerTrait.

Constants

COLUMNS_NONE

Only use 'col' class (auto stretch)

COLUMNS_AUTO

Use 'col-auto'

Methods

addButton(string $name, null|string| Html $content = NULL, string $btnClass = 'btn-secondary')

No description

addCheckbox(string $name, null $caption = NULL)

No description

addCheckboxList(string $name, null $label = NULL, array $items = NULL)

No description

addComponent( IComponent $component, $name, null $insertBefore = NULL)

Delegate to underlying component.

addDateTime(string $name, string $label)

Adds a datetime input.

addEmail($name, null $label = NULL)

No description

addInputError(string $componentName, string $message)

Adds error to a specific component

addInteger(string $name, string $label = NULL)

No description

addMultiSelect(string $name, null $label = NULL, array $items = NULL, null $size = NULL)

No description

addMultiUpload(string $name, string $label = NULL)

No description

addPassword(string $name, string $label = NULL, null $cols = NULL, null $maxLength = NULL)

No description

addRadioList($name, $label = NULL, array $items = NULL)

No description

addSelect(string $name, string $label = NULL, array $items = NULL, null $size = NULL)

No description

addSubmit(string $name, string $caption = NULL, string $btnClass = 'btn-primary')

No description

addText(string $name, string $label = NULL, null $cols = NULL, null $maxLength = NULL)

No description

addTextArea(string $name, string $label = NULL, null $cols = NULL, null $rows = NULL)

No description

addUpload(string $name, string $label = NULL, bool $multiple = FALSE)

No description

__construct( BootstrapRow $row, int|null| false $numOfColumns)

BootstrapRow constructor.

Html
getElementPrototype()

Gets the prototype of this cell so you can define additional attributes. Col-* class is added during rendering and is not present, so don't add it.

int| false |null
getNumOfColumns()

No description

Html
render()

Renders the cell into Html object

string
createClass()

Creates column class based on numOfColumns

Details

ButtonInput addButton(string $name, null|string| Html $content = NULL, string $btnClass = 'btn-secondary')

Parameters

string $name
null|string| Html $content
string $btnClass secondary button class (primary is 'btn')

Return Value

ButtonInput

CheckboxInput addCheckbox(string $name, null $caption = NULL)

Parameters

string $name
null $caption

Return Value

CheckboxInput

CheckboxListInput addCheckboxList(string $name, null $label = NULL, array $items = NULL)

Parameters

string $name
null $label
array $items

Return Value

CheckboxListInput

at line 120
protected addComponent( IComponent $component, $name, null $insertBefore = NULL)

Delegate to underlying component.

Parameters

IComponent $component
$name
null $insertBefore

BootstrapContainer addContainer(string $name)

Parameters

string $name

Return Value

BootstrapContainer

DateTimeInput addDateTime(string $name, string $label)

Adds a datetime input.

Parameters

string $name name
string $label label

Return Value

DateTimeInput

TextInput addEmail($name, null $label = NULL)

Parameters

$name
null $label

Return Value

TextInput

addInputError(string $componentName, string $message)

Adds error to a specific component

Parameters

string $componentName
string $message

TextInput addInteger(string $name, string $label = NULL)

Parameters

string $name
string $label

Return Value

TextInput

MultiselectInput addMultiSelect(string $name, null $label = NULL, array $items = NULL, null $size = NULL)

Parameters

string $name
null $label
array $items
null $size

Return Value

MultiselectInput

UploadInput addMultiUpload(string $name, string $label = NULL)

Parameters

string $name
string $label

Return Value

UploadInput

TextInput addPassword(string $name, string $label = NULL, null $cols = NULL, null $maxLength = NULL)

Parameters

string $name
string $label
null $cols
null $maxLength

Return Value

TextInput

addRadioList($name, $label = NULL, array $items = NULL)

Parameters

$name
$label
array $items

SelectInput addSelect(string $name, string $label = NULL, array $items = NULL, null $size = NULL)

Parameters

string $name
string $label
array $items
null $size ignore

Return Value

SelectInput

SubmitButtonInput addSubmit(string $name, string $caption = NULL, string $btnClass = 'btn-primary')

Parameters

string $name
string $caption
string $btnClass secondary button class (primary is 'btn')

Return Value

SubmitButtonInput

TextInput addText(string $name, string $label = NULL, null $cols = NULL, null $maxLength = NULL)

Parameters

string $name
string $label
null $cols ignored
null $maxLength ignored

Return Value

TextInput

TextAreaInput addTextArea(string $name, string $label = NULL, null $cols = NULL, null $rows = NULL)

Parameters

string $name
string $label
null $cols ignored
null $rows ignored

Return Value

TextAreaInput

UploadInput addUpload(string $name, string $label = NULL, bool $multiple = FALSE)

Parameters

string $name
string $label
bool $multiple

Return Value

UploadInput

at line 66
__construct( BootstrapRow $row, int|null| false $numOfColumns)

BootstrapRow constructor.

Parameters

BootstrapRow $row Row this is a child of
int|null| false $numOfColumns Number of Bootstrap columns to occupy. You can use an integer or BootstrapCell::COLUMNS_* constant (see their docs for more)

at line 79
Html getElementPrototype()

Gets the prototype of this cell so you can define additional attributes. Col-* class is added during rendering and is not present, so don't add it.

..

Return Value

Html

at line 88
int| false |null getNumOfColumns()

Return Value

int| false |null

See also

at line 97
Html render()

Renders the cell into Html object

Return Value

Html

at line 135
protected string createClass()

Creates column class based on numOfColumns

Return Value

string