Method | Description | |
---|---|---|
__construct ( SpoonDatagridSource $source ) | ||
addColumn ( string $name, string $label = null, string $value = null, string $url = null, string $title = null, string $image = null, integer $sequence = null ) | Adds a new column | |
addColumnAction ( string $name, string $label = null, string $value = null, string $url = null, string $title = null, array $anchorAttributes = null, string $image = null, integer $sequence = null ) | Adds a new column with a custom action button | |
enableGreyingOut ( ) | Enable the grey out functionality. This will see if we have a column that matches our set. | |
enableSequenceByDragAndDrop ( ) | Enable drag and drop for the current datagrid | |
getContent ( ) : string | Retrieve the parsed output. | |
hasColumn ( string $column ) : boolean | Checks whether a column is present in the datagrid | |
setActiveTab ( string $tab ) | Sets the active tab for this datagrid | |
setColumnConfirm ( string $column, string $message, string $custom = null, string $title = null, string $uniqueId = '[id]' ) | Set a custom column confirm message. | |
setColumnFunction ( mixed $function, mixed $arguments = null, mixed $columns, boolean $overwrite = true ) | Sets the column function to be executed for every row | |
setMassAction ( SpoonFormDropdown $actionDropDown ) | Sets the dropdown for the mass action | |
setMassActionCheckboxes ( string $column, string $value, array $excludedValues = null, array $checkedValues = null ) | Sets the checkboxes for the mass action | |
setTooltip ( string $column, string $message ) | Set a tooltip | |
setURL ( string $url, boolean $append = false ) | Sets an URL, optionally only appending the provided piece |
Method | Description | |
---|---|---|
decideIcon ( $name ) : null | string | Decides what icon to use by given name | |
setSortingOptions ( ) | Sets all the default settings needed when attempting to use sorting |
public __construct ( SpoonDatagridSource $source ) | ||
$source | SpoonDatagridSource |
public addColumn ( string $name, string $label = null, string $value = null, string $url = null, string $title = null, string $image = null, integer $sequence = null ) | ||
$name | string | The name for the new column. |
$label | string | The label for the column. |
$value | string | The value for the column. |
$url | string | The URL for the link inside the column. |
$title | string | A title for the image inside the column. |
$image | string | An URL to the image inside the column. |
$sequence | integer | The sequence for the column. |
public addColumnAction ( string $name, string $label = null, string $value = null, string $url = null, string $title = null, array $anchorAttributes = null, string $image = null, integer $sequence = null ) | ||
$name | string | The name for the new column. |
$label | string | The label for the column. |
$value | string | The value for the column. |
$url | string | The URL for the link inside the column. |
$title | string | The title for the link inside the column. |
$anchorAttributes | array | The attributes for the anchor inside the column. |
$image | string | An URL to the image inside the column. |
$sequence | integer | The sequence for the column. |
public enableGreyingOut ( ) |
public enableSequenceByDragAndDrop ( ) |
public setActiveTab ( string $tab ) | ||
$tab | string | The name of the tab to show. |
public setColumnConfirm ( string $column, string $message, string $custom = null, string $title = null, string $uniqueId = '[id]' ) | ||
$column | string | The name of the column to set the confirm for. |
$message | string | The message to use as a confirm message. |
$custom | string | Unused parameter. |
$title | string | The title for the column. |
$uniqueId | string | A unique ID that will be uses. |
public setColumnFunction ( mixed $function, mixed $arguments = null, mixed $columns, boolean $overwrite = true ) | ||
$function | mixed | The function to execute. |
$arguments | mixed | The arguments to pass to the function. |
$columns | mixed | The column wherein the result will be printed. |
$overwrite | boolean | Should the original value be overwritten. |
public setMassAction ( SpoonFormDropdown $actionDropDown ) | ||
$actionDropDown | SpoonFormDropdown | A dropdown-instance. |
public setMassActionCheckboxes ( string $column, string $value, array $excludedValues = null, array $checkedValues = null ) | ||
$column | string | The name for the column that will hold the checkboxes. |
$value | string | The value for the checkbox. |
$excludedValues | array | The values that should be excluded. |
$checkedValues | array | The values that should be checked. |
public setTooltip ( string $column, string $message ) | ||
$column | string | The name of the column to set the tooltop for. |
$message | string | The key for the message (will be parsed through BackendLanguage::msg). |