Sha256: 08792b2a02dc19f2654328e4404cd0e2edc17895e183383a6aa3648388047e2f

Contents?: true

Size: 953 Bytes

Versions: 30

Compression:

Stored size: 953 Bytes

Contents

<%#

This is a simple click-to-expand type widget with the same styling as
the jquery-ui accordion.

### Example

    <toggle open>
      <heading:>Click me</heading:>
      <content:>inner content</content:>
    <toggle>

### Attributes

`open`: if supplied, the content is initially displayed.   Otherwise
it is initially hidden

%>
<def tag="toggle" attrs="open">
  <div class="toggle ui-accordion ui-widget ui-helper-reset ui-accordion-icons" data-rapid="&data_rapid('toggle')" param="outer">
    <h3 class="ui-accordion-header ui-state-default ui-helper-reset #{open ? 'ui-state-active ui-corner-top' : 'ui-corner-all'}" param>
      <span class="ui-icon #{open ? 'ui-icon-triangle-1-s' : 'ui-icon-triangle-1-e'}" param></span>
      <a href="#" param="heading"/>
    </h3>
    <div class="ui-accordion-content ui-widget-content ui-corner-bottom ui-helper-reset #{open ? 'ui-accordion-content-active' : 'hidden'}" param="content"/>
  </div>
</def>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
hobo_jquery_ui-2.2.6 taglibs/toggle.dryml
hobo_jquery_ui-2.2.5 taglibs/toggle.dryml
hobo_jquery_ui-2.2.4 taglibs/toggle.dryml
hobo_jquery_ui-2.2.3 taglibs/toggle.dryml
hobo_jquery_ui-2.2.2 taglibs/toggle.dryml
hobo_jquery_ui-2.2.1 taglibs/toggle.dryml
hobo_jquery_ui-2.2.0 taglibs/toggle.dryml
hobo_jquery_ui-2.1.2 taglibs/toggle.dryml
hobo_jquery_ui-2.1.1 taglibs/toggle.dryml
hobo_jquery_ui-2.1.0 taglibs/toggle.dryml
hobo_jquery_ui-2.1.0.pre4 taglibs/toggle.dryml
hobo_jquery_ui-2.1.0.pre3 taglibs/toggle.dryml
hobo_jquery_ui-2.1.0.pre2 taglibs/toggle.dryml
hobo_jquery_ui-2.1.0.pre1 taglibs/toggle.dryml
hobo_jquery_ui-2.0.1 taglibs/toggle.dryml
hobo_jquery_ui-2.0.0 taglibs/toggle.dryml
hobo_jquery_ui-2.0.0.pre10 taglibs/toggle.dryml
hobo_jquery_ui-2.0.0.pre9 taglibs/toggle.dryml
hobo_jquery_ui-2.0.0.pre8 taglibs/toggle.dryml
hobo_jquery_ui-2.0.0.pre7 taglibs/toggle.dryml