module_menu() html()
A row of a() buttons for the actions of an admin module; the button of the current action is disabled and highlighted.
html()->module_menu($obj, $items = [], $extra = [])Опції
| Опція | Значення |
|---|---|
$obj | The module (not used yet). |
$items | Rows [url, title, icon, text, ..., target, no_text], the arguments of a(). |
Приклад
Код
return html()->module_menu(null, [
['/@object/', 'Overview', 'fa fa-home'],
['/@object/html/module_menu', 'This page', 'fa fa-list', '', '', '_self'],
['/@object/html/a', 'Links', 'fa fa-link', '', '', '_self'],
]);Див. також: html/a, html/dropdown