osobrevilla / sidemenu

JavaScript library to create multilevel side menus. (DEPRECATED)
http://osobrevilla.github.io/sidemenu/
18 stars 4 forks source link

how to add html element ? #6

Open husen13 opened 7 years ago

husen13 commented 7 years ago

i use this pluggin and it works !,but i want to add some glyphicon that trigger a modal,and i don't know how to add it,any help ?

osobrevilla commented 7 years ago

Hi @husen13, maybe you can create a custom item inherit from SMItem class and add in the constructor add your tag with a specific class. Another way is using pseudo elements, all you need is add a class to your SMItem (SMButtonItem, SMLinkItem, etc) and use CSS.