action

API Methods

setState

Attribute Names

data-state

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

        Semantic SVG

        data-state

        Toggles between its undo and redo states

        • undo

          <img data-state="undo" data-src="action.svg" class="iconic" alt="action" />
          
        • redo

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

        Options/Examples

        setState(state)

        undo
        redo

        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="action-undo" title="action undo" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-action-undo" title="action undo" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-action-undo" title="action undo" aria-hidden="true"></span>
        
        • action-undo

        • action-redo

        was copied for yah