html - Opening a drop-down menu popup on a div using Bootstrap -
is there way toggle drop-down on div using twitter-bootstrap?
i have bunch of divs on page in form of square menu items. if square menu item div clicked drop-down show similar 'button dropdowns' example on bootstrap website.
code:
code below using asp.net repeater. in itemtemplate dynamically generated on server can @ for-loop generate primary navigation items. make when 1 of these primary navigation items clicked sub-menu shows. don't care if uses popover or drop-down, need show sub-items. please disregard templating syntax.
<asp:repeater id="repeater1" runat="server"> <headertemplate> <ul class="primarynav"> </headertemplate> <itemtemplate> <li class="primary-nav-item"> <asp:hyperlink id="navitem" runat="server" cssclass="mainnav-item-tile" navigateurl='<%# eval("navurl") %>'> <img width="64" height="64" src='<%# eval("imgsrc") %>' class="primary-nav-item-tile-img" /> <span><%# eval("title") %></span> </asp:hyperlink> </li> </itemtemplate> <footertemplate> </ul> </footertemplate> </asp:repeater>
Comments
Post a Comment