MarkupAdminDataTable class

Class MarkupAdminDataTable

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the MarkupAdminDataTable class also inherits all the methods and properties of: ModuleJS, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
MarkupAdminDataTable::action(array $action)
$this

Add action(s) button underneath the table

 
MarkupAdminDataTable::addClass(string $class)
None

Add a class to the table (without replacing existing ones)

 
MarkupAdminDataTable::footerRow(array $a)
$this

Set the footer row for the table


Can also be used as property: MarkupAdminDataTable::footerRow
 
MarkupAdminDataTable::get(string $key)
mixed null

Get property

 
MarkupAdminDataTable::headerRow(array $a)
$this

Set the header row for the table


Can also be used as property: MarkupAdminDataTable::headerRow
 
MarkupAdminDataTable::removeClass(string $class)
None

Remove a class from the table

 
MarkupAdminDataTable::render()
string

Render the table

MarkupAdminDataTable::row(array $a)
$this

Add a row to the table

 
MarkupAdminDataTable::setCaption(string $caption)
None

Set table caption

 
MarkupAdminDataTable::setClass(string $class)
None

Set class(es) to add to table

 
MarkupAdminDataTable::setColNotSortable(int $index)
None

Set a column as not sortable (first column is 0)

 
MarkupAdminDataTable::setEncodeEntities()
None

Set whether or not entity encoding is enabled

 
MarkupAdminDataTable::setID(string $id)
None

Set table id attribute

 
MarkupAdminDataTable::setResizable(bool $resizable)
None

Set whether or not table is resizable

 
MarkupAdminDataTable::setResponsive()
None

Set the responsive mode of this table

 
MarkupAdminDataTable::setSortable(bool $sortable)
None

Set whether or not table is sortable

 
MarkupAdminDataTable::settings(string $key)
string int array null MarkupAdminDataTable

Get or set an internal setting


Can also be used as property: MarkupAdminDataTable::settings
 

Properties

NameReturnSummary 
MarkupAdminDataTable::actions array 
MarkupAdminDataTable::caption string 
MarkupAdminDataTable::class string 
MarkupAdminDataTable::encodeEntities bool 
MarkupAdminDataTable::id string 
MarkupAdminDataTable::resizable bool 
MarkupAdminDataTable::responsive bool 
MarkupAdminDataTable::rowAttrs array 
MarkupAdminDataTable::rowClasses array 
MarkupAdminDataTable::rows array 
MarkupAdminDataTable::sortable bool 

Additional methods and properties

In addition to the methods and properties above, MarkupAdminDataTable also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252