sort

API Methods

setState

Attribute Names

data-state

Elements
    Properties
      Sizes
        SVG
        <img data-src="sort.svg" class="iconic iconic-sm" alt="sort">
        <img data-src="sort.svg" class="iconic iconic-md" alt="sort">
        <img data-src="sort.svg" class="iconic iconic-lg" alt="sort">
        
        Default Icon Font
        <span class="iconic iconic-sm" data-glyph="sort-ascending" title="sort ascending" aria-hidden="true"></span>
        <span class="iconic iconic-md" data-glyph="sort-ascending" title="sort ascending" aria-hidden="true"></span>
        <span class="iconic iconic-lg" data-glyph="sort-ascending" title="sort ascending" aria-hidden="true"></span>
        
        Bootstrap Icon Font
        <span class="iconic iconic-sort-ascending iconic-sm" title="sort ascending" aria-hidden="true"></span>
        <span class="iconic iconic-sort-ascending iconic-md" title="sort ascending" aria-hidden="true"></span>
        <span class="iconic iconic-sort-ascending iconic-lg" title="sort ascending" aria-hidden="true"></span>
        
        Foundation Icon Font
        <span class="fi-sort-ascending iconic-sm" title="sort ascending" aria-hidden="true"></span>
        <span class="fi-sort-ascending iconic-md" title="sort ascending" aria-hidden="true"></span>
        <span class="fi-sort-ascending iconic-lg" title="sort ascending" aria-hidden="true"></span>
        
        CSS

        Semantic SVG

        data-state

        Toggles between its ascending and descending states

        • ascending

          <img data-state="ascending" data-src="sort.svg" class="iconic" alt="sort" />
          
        • descending

          <img data-state="descending" data-src="sort.svg" class="iconic" alt="sort" />
          
        Method name

        Options/Examples

        setState(state)

        ascending
        descending

        Icon Font

        Iconic may be all about SVG, but it also comes with a killer font. For the full skinny, read our icon font and Bootstrap/Foundation guides.

        <!-- Default -->
        <span class="iconic" data-glyph="sort-ascending" title="sort ascending" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-sort-ascending" title="sort ascending" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-sort-ascending" title="sort ascending" aria-hidden="true"></span>
        
        • sort-ascending

        • sort-descending

        was copied for yah