How To
Documentation
    Learn More

      search:offcanvas-toggle

      Description

      Creates a toggle button to show/hide the side panel. Adds class to target element when directive is clicked.

      Usage

      as element:
      <search:offcanvas-toggle
             target="{string}"
             [active-class="{string}"]>
      </search:offcanvas-toggle>

      Parameters

      ParamTypeDetails
      targetstring

      The element to add the active class to

      active-class
      (optional)
      string

      The active class, defaults to 'active'

      Example

      Source

      
      
      

      Demo