WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($id, $columns, $items) | |
Construct. More... | |
items () | |
Dynamic table items. More... | |
display () | |
Display the dynamic table. More... | |
html () | |
Get the HTML markup for dynamic table. More... | |
Data Fields | |
const | COLUMN_ROW_MANAGE = '_wpdk_dt_column_row_manage' |
Column add/del. More... | |
$sortable | |
Sortable. More... | |
The WPDKDynamicTable class create and manage a special amazing table list view where you can add/remove rows. In addition you can drag & drop a single row to sort.
The WPDKDynamicTableView is a new version of old WPDKDynamicTable. This class can be instance or subclass. In addition you can drag & drop a single row to sort.
Definition at line 20 of file wpdk-dynamic-table.php.
__construct | ( | $id, | |
$columns, | |||
$items | |||
) |
Construct.
Create an instance of WPDKDynamicTable class
string | $id | ID for this dynamic table |
array | $columns | Key value pairs array with column name and type |
array | $items | Key value pairs array with column and value. Used for preload the table. |
Definition at line 87 of file wpdk-dynamic-table.php.
display | ( | ) |
Display the dynamic table.
Display the HTML markup of the dynamic table
Definition at line 133 of file wpdk-dynamic-table.php.
html | ( | ) |
Get the HTML markup for dynamic table.
Return the HTML markup for dynamic table
Definition at line 144 of file wpdk-dynamic-table.php.
items | ( | ) |
Dynamic table items.
Get/Set the items list for this dynamic table. If not set parameters this method return the items array.
Definition at line 114 of file wpdk-dynamic-table.php.
bool $sortable |
const COLUMN_ROW_MANAGE = '_wpdk_dt_column_row_manage' |
Column add/del.
This is the internal code name of the column (last column) used for add/del a row.
Definition at line 27 of file wpdk-dynamic-table.php.