Creating a new data-attribute in menu item to use in my controls.
Example:
['header' => 'account_settings'],
[
'text' => 'profile',
'url' => 'admin/settings',
'icon' => 'fas fa-fw fa-user',
'my-data' => 'new-data-attribute'
],
There is actually no way to add custom data attributes.
I am altering the menu-item.blade.php file to this.
But, the better would be on config file of adminlte.
There is actually no way to add custom data attributes.
I don't understand, no possible to add input or change menu ? Thank you
@REJack we can add this as a new feature to the menu 馃憤
@lacodimizer sure :D assign me on it, I'll create a PR for it and may other issues too.
@lacodimizer I wait until #558 is merged and then I implement my prebuild code 馃槃.
I build a Menu Filter called DataFilter and it generate from this code
[
'text' => 'pages',
'url' => 'admin/pages',
'icon' => 'far fa-fw fa-file',
'label' => 4,
'label_color' => 'success',
'data' => [
'test' => 'tesa',
'fest' => 'fesa',
],
],
this data tags 馃槃
data-test="tesa" data-fest="fesa"
@REJack done. :D
Most helpful comment
@lacodimizer sure :D assign me on it, I'll create a PR for it and may other issues too.