Data Table Renders a table field.


Public Properties

public string $size

Table size

public bool $rowSorting

Allow rows to be sorted

Show inherited public properties

Inherited Public Properties

Protected Properties

protected $defaultAlias

defaultAlias to identify this widget.

protected Backend\Widgets\Table $table

Table widget

Show inherited protected properties

Inherited Protected Properties

Public Methods

public getDataTableOptions()

public getDataTableOptions(string $columnName, array $rowData): array 

getDataTableOptions is a dropdown/autocomplete option callback handler

Looks at the model for getXXXDataTableOptions or getDataTableOptions methods to obtain values for autocomplete and dropdown column types.

public getLoadValue()

public getLoadValue(): void

getLoadValue returns the value for this form field, supports nesting via HTML array.

public getSaveValue()

public getSaveValue($value): void

getSaveValue processes the postback value for this widget. If the value is omitted from postback data, the form widget will be skipped.

public getTable()

public getTable(): Backend\Widgets\Table 

public init()

public init(): void

init the widget, called by the constructor and free from its parameters.

public prepareVars()

public prepareVars(): void

prepareVars for display

public render()

public render(): void

render the widget's primary contents.

Show inherited public methods

Inherited Public Methods

Protected Methods

protected makeTableWidget()

protected makeTableWidget(): void

protected populateTableWidget()

protected populateTableWidget(): void

Show inherited protected methods

Inherited Protected Methods