Flex UI Library (1.6.10)
User Interface Resources
Theme Components Miscellaneous
Exploratory Components
Miscellaneous
Feature Examples
Address Search Contact Management Mobile Price Range 1 Price Range 2 Responsive Hot Sheet Responsive Layout
Product Marketing
Licensed Photos - [new window] Screenshot Library
Tools & Reference
Debug Tips
Navs
Nav

Implementation Notes
  • Use the Code Sample to create the required markup.
  • JavaScript code is automatically attached to the component. There is no need to make a separate call except in the following situation.
  • If the contents of the nav items change, call
    $('[data-flexmls=nav-tabs]').tab('refresh').
Nav Tabs
Contact Details
Searches/Subscriptions
Portal
Calendar
Messages
Forms
Notes
Listing Notes

Implementation Notes
  • Use the Code Sample to create the required markup.
  • If the contents of the nav items change, call
    $('[data-flexmls=nav-tabs]').tab('refresh').
Nav Tabs - No More
Example without overflow menu.
Contact Details
Searches/Subscriptions
Portal

Nav Lists
Standard

Icons

Avatars

Nav Pill
Nav Pill

<div class="c-container--canvas">

  <div id="basicNavPill" class="c-nav-pill">
    <a class="c-nav-pill-btn" data-active="true">Red</a>
    <a class="c-nav-pill-btn">Green</a>
    <a class="c-nav-pill-btn">Blue</a>
  </div>
</div>

<script>
  $(function() {
    new NavPill('#basicNavPill');
  })
</script>

You can control this programatically by calling the select function. This button has an event listner set up to select "Red" when clicked.

 

<div class="c-container--canvas">

  <div id="fancyNavPill" class="c-nav-pill">
    <a id="red" class="c-nav-pill-btn" data-active="true">Red</a>
    <a class="c-nav-pill-btn">Green</a>
    <a class="c-nav-pill-btn">Blue</a>
  </div>
  &nbsp;
  <button id='test' class="btn btn-sm btn-primary">Select Red</button>
</div>

<script>
  $(function() {
    var np = new NavPill('#fancyNavPill');

    $('#test').click(function() {
      np.select($('#red'));
    })
  })
</script>