...
Controller Context – get_index_label()
Example
Code Block | ||
---|---|---|
| ||
// link title in index view public function get_index_label() { return ['index' => [$this->name, $this->ds_rate_max.' MBit/s', $this->us_rate_max.' MBit/s'], 'index_header' => ['Name', 'DS Rate', 'US Rate'], 'header' => $this->name]; } |
...
index | array | fields to display on index screen, each array entry is splitted in table <td> segments | |
index_header | array | the corresponding header array for index table view | |
bsclass | string | bootstrap class of table segments | 'success', 'warning', 'danger', 'info' |
header | string | string to display in
| |
|
Info | ||
---|---|---|
| ||
See for new AJAX implementation: https://github.com/schmto/nmsprime/pull/26/commits/b621e9ba137d040d4f96a9a0b9b050451fb89f83 |
Tree View
Requirements
parent_id in table
index_tree_view = true in Controller of the MVC
defined parent() and childen() function in model
view_index_label function
Optional
set icon type via $model->get_icon_type()
make entries undeletable via Model::undeletables()
...