Sha256: 5db8def269d5783e87ffe2adeed75850862e1bfbc5b0791459fd980a86479c3a

Contents?: true

Size: 871 Bytes

Versions: 2

Compression:

Stored size: 871 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:multi_selects) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer
  page_title 'Multi Select Fields'

  indented_grid do
    content do
      multi_select do
        label 'Multi Select Field'
        check_option value: 'value1', text: 'First value', selected: true
        check_option value: 'value2', text: 'Second value', selected: true
        check_option value: 'value3', text: 'Third value', selected: true
      end

      multi_select do
        label 'One Selection'
        check_option value: 'value1', text: 'First value', selected: true
        check_option value: 'value2', text: 'Second value', selected: false
        check_option value: 'value3', text: 'Third value', selected: false
      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/multi_selects.pom
voom-presenters-2.1.0 app/demo/components/multi_selects.pom