Skip to content

Add css class on dropdown item #130

Description

@lafeuil

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions