PHP Class WPDKUITableView

You usually subclass this class in your project.
Since: 1.5.6
Author: =undo= ([email protected])
Inheritance: extends WPDKView
Show file Open project: wpxtreme/wpdk

Public Properties

Property Type Description
$scrollable_height string Height of scrollable area. Set to empty for no scroll.

Protected Properties

Property Type Description
$column_atts array ..

Public Methods

Method Description
__construct ( $id ) : WPDKUITableView Create an instance of WPDKUITableView class
column ( array $item, string $column_key ) Return the content of column. You can override this method to customize your column content.
column_atts ( ) Return the array with the column attributes list.
columns ( ) Return the array with column list.
draw ( ) Display
items ( ) Return an array with content of column table.
single_row ( array $item ) Draw a single row.

Protected Methods

Method Description
get_atts ( string $column_key ) : string Return the inline attributes for the column.

Method Details

__construct() public method

Create an instance of WPDKUITableView class
public __construct ( $id ) : WPDKUITableView
return WPDKUITableView

column() public method

Return the content of column. You can override this method to customize your column content.
public column ( array $item, string $column_key )
$item array The array key with content of column.
$column_key string Column key.

column_atts() public method

Return the array with the column attributes list.
public column_atts ( )

columns() public method

Return the array with column list.
public columns ( )

draw() public method

Display
public draw ( )

get_atts() protected method

Return the inline attributes for the column.
protected get_atts ( string $column_key ) : string
$column_key string The column key.
return string

items() public method

Return an array with content of column table.
public items ( )

single_row() public method

Draw a single row.
public single_row ( array $item )
$item array List of column

Property Details

$column_atts protected property

..
protected array $column_atts
return array

$scrollable_height public property

Height of scrollable area. Set to empty for no scroll.
public string $scrollable_height
return string