lock

API Methods

setState

Attribute Names

data-state

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

        Semantic SVG

        data-state

        Toggles between its locked and unlocked states

        • locked

          <img data-state="locked" data-src="lock.svg" class="iconic" alt="lock" />
          
        • unlocked

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

        Options/Examples

        setState(state)

        locked
        unlocked

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

        • lock-unlocked

        was copied for yah