ActionColumn
ActionColumn
ActionColumn
- Full name: \Gibbon\Tables\Columns\ActionColumn
- Parent class: \Gibbon\Tables\Columns\Column
Methods
- __construct — Creates a pre-defined column for grouped sets of action icons.
- addAction — Adds a named action to the column and returns the new Action object.
- addParam — Adds a URL parameter to the column that is passed to each action.
- addParams — Adds an array of URL parameters to be appended to the link URL.
- getWidth — Sets a column width based on the number of actions.
- getOutput — Iterates over and renders each action, passing in the row data and URL parameters.
Inherited from Column
- __construct
- getLabel
- width
- getWidth
- description
- getDescription
- sortable
- notSortable
- getSortable
- format
- hasFormatter
- modifyCells
- getCellModifiers
- getOutput
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__construct
Creates a pre-defined column for grouped sets of action icons.
ActionColumn::__construct( )
addAction
Adds a named action to the column and returns the new Action object.
ActionColumn::addAction( string $name, string $label = '' ): \Gibbon\Tables\Action
Return Value:
\Gibbon\Tables\Action
addParam
Adds a URL parameter to the column that is passed to each action.
ActionColumn::addParam( string $name, string $value = '' ): self
Returns Self: This method can be chained.
addParams
Adds an array of URL parameters to be appended to the link URL.
ActionColumn::addParams( array $values ): self
Returns Self: This method can be chained.
getWidth
Sets a column width based on the number of actions.
ActionColumn::getWidth( ): string
Return Value:
string
getOutput
Iterates over and renders each action, passing in the row data and URL parameters.
ActionColumn::getOutput( array &$data = array() ): string
Return Value:
string