Sha256: 0301b716137411ffecb5e2e33079b7cc204e1479b70e8f4b1d0b096697c9339c

Contents?: true

Size: 571 Bytes

Versions: 9

Compression:

Stored size: 571 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:selects) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer

  indented_grid do
    display 'Select Fields'

    form do
      select do
        label 'Text...'
        option do
          value 'value1'
          text 'First value'
        end
        option do
          value 'value2'
          text 'Second value'
        end
        event :change do
          snackbar 'item changed'
        end
      end
    end
    
    attach :code, file: __FILE__
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
voom-presenters-0.1.8 app/demo/components/selects.pom
voom-presenters-0.1.7 app/demo/components/selects.pom
voom-presenters-0.1.6 app/demo/components/selects.pom
voom-presenters-0.1.5 app/demo/components/selects.pom
voom-presenters-0.1.4 app/demo/components/selects.pom
voom-presenters-0.1.3 app/demo/components/selects.pom
voom-presenters-0.1.2 app/demo/components/selects.pom
voom-presenters-0.1.1 app/demo/components/selects.pom
voom-presenters-0.1.0 app/demo/components/selects.pom