Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add css class on dropdown item #130

Open
lafeuil opened this issue Nov 13, 2017 · 0 comments
Open

Add css class on dropdown item #130

lafeuil opened this issue Nov 13, 2017 · 0 comments

Comments

@lafeuil
Copy link

lafeuil commented Nov 13, 2017

Currently, when we configured an item with text attribute, a <a> tag is created with dropdown-item css class.

Could you add a new property cssClass to add some other class on this <a> tag ? This new property could accept a text or function.

This feature can solve some others demands like displaying an icon on dropdown item #21.

Before :

{
  text: '<i class="mdi mdi-pencil"></i> Rename',
  click: function () { rename() }
}

After :

{
  text: 'Rename',
  cssClass: 'mdi mdi-pencil',
  click: function () { rename() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant