Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation


Action Tree

See also tree grid for more advanced tree component.

Action tree is a tree widget based on FancyTree. It allows performing actions on the tree items.

Tree has several interaction options possible, to define them use $on property to define on which type of event action should be called. For details about configuration see configuring tree page.

echo ActionTree::widget([
    'dataProvider' => new TreeProvider(new PageItemTree),
    'on' => [
        'click' => 'console.log'
    ]
]);