Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

return either a array with following fields or (for historical reasons) return a string with index/header description:

    
indexarrayfields to display on index screen, each array entry is splitted in table <td> segments 
index_headerarraythe corresponding header array for index table view 
bsclassstringbootstrap class of table segments'success', 'warning', 'danger', 'info'
headerstring

string to display in

  • headline for relation context (real breadcrumbs headline (smile))
  • entries in relational blades
 

 

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()