jquery-mobilejquery-mobile-button

Select and button on same line in Panel


How can I override these JQM enhancements so I can just be able to have a select menu and a button right next to each other. All the demos just put an easy big button at the bottom of their Panel example, but I got real content and sometimes it can get quite long. So I need a back button, I don't want data-dissmissible or the other data- attribute for swiping....(death by data attributes) ;)

The Fiddle is HERE

    <div data-role="panel" id="leftPanel" data-display="reveal" data-position="left" data-position-fixed="true" data-swipe-close="true" data-dismissible="true">
    <div data-role="fieldcontain" data-theme="a">
        <select name="selectNavType" id="selectNavType" data-mini="true">
            <option value="TopicsNavView" selected="selected">Topic</option>
            <option value="IndexNavView">Index</option>
            <option value="ToolsNavView" >Tools</option>
        </select>
        <a href="#" data-rel="close" data-role="button" data-icon="carat-l" data-iconpos="notext" data-shadow="false" data-iconshadow="false" ></a>
    </div>    
</div>

Solution

  • Do you mean you want a bigger Icon on the select?

    if so you can use this css

    .ui-btn-icon-left:after, .ui-btn-icon-right:after, .ui-btn-icon-top:after, .ui-btn-icon-bottom:after, .ui-btn-icon-notext:after #selectNavType  {
     margin-top:-14px;
     width: 28px;
     height: 28px;
     }