Sha256: 45d6366c20145b7194c3c8e32aa1b2c05ffb207adadd0e516551426403309352

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

- attrs[:class] ||= 'selectable'
- if setup[:decorative?]
  - attrs[:onchange] = "new Rear.Filters('%s', '%s').update();" % \
    [dom_id, route(:html_filters, true, dom_id: dom_id)]

select name=name data-placeholder=setup[:label] *attrs
  option value=""
  - filter_setup_to_options(setup).each_pair do |v,l|
    option value=v selected=(value == v.to_s) = l

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rear-0.2.0 lib/rear/templates/filters/select.slim