TwitterBootstrapMvc icon indicating copy to clipboard operation
TwitterBootstrapMvc copied to clipboard

PrependIcon with Dropdown

Open johnkattenhorn opened this issue 11 years ago • 3 comments

Hi,

Great work Dmitry, been a massive timesaver for us.

I was wondering if anyone has any suggestion for being able to prepend an icon to a dropdown when it's being used in the context of the stacked side menu ?

Thanks

John

johnkattenhorn avatar Mar 08 '14 15:03 johnkattenhorn

could you please provide example of the code that you have and that you'd like to have?

DmitryEfimenko avatar Mar 08 '14 21:03 DmitryEfimenko

<ul class="sidebar-menu">
    <li class="treeview">
        <a href="#">
            <i class="fa fa-bar-chart-o"></i>
            <span>Charts</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li><a href="pages/charts/morris.html"><i class="fa fa-angle-double-right"></i> Morris</a></li>
            <li><a href="pages/charts/flot.html"><i class="fa fa-angle-double-right"></i> Flot</a></li>
            <li><a href="pages/charts/inline.html"><i class="fa fa-angle-double-right"></i> Inline charts</a></li>
        </ul>
    </li>
</ul>

Adding the PrependIcon and AppendIcon APIs to the DropDown and SubNav classes should be enough

tehplague avatar May 29 '14 18:05 tehplague

looking for the same here :)

HgsTGitHub avatar Aug 28 '14 14:08 HgsTGitHub