ActionColumn

ActionColumn

ActionColumn

Methods

Inherited from Column
Inherited from BasicAttributesTrait

__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