Sha256: 1447fff1cb808fa52d9efbdfe520b8b07c9318b7bdb10e8aa5b06616d39fc040
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
require_relative '../helpers/indented_grid' Voom::Presenters.define(:selects) do helpers Demo::Helpers::IndentedGrid attach :top_nav attach :component_drawer page_title 'Select Fields' indented_grid do content do select full_width: false do label 'Default (outlined) style ...' option do value 'value1' text 'First value' end option do value 'value2' text 'Second value' end # event :change do # snackbar 'item changed' # end end blank select outlined: false do label 'Alternate style ...' option option selected: true do value 'value1' text 'First value' end option do value 'value2' text 'Second value' end # event :change do # snackbar 'item changed' # end end blank select full_width: false do icon :filter_list label 'Default (outlined) style ...' option disabled: true do text 'Pick One' end option do value 'value1' text ' One 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voom-presenters-2.1.2 | app/demo/components/selects.pom |
voom-presenters-2.1.0 | app/demo/components/selects.pom |