Sha256: 5634acd18fdf4fb69bf00afe079529baa45d175d71bb8700a2b882a6a65a2d94

Contents?: true

Size: 873 Bytes

Versions: 12

Compression:

Stored size: 873 Bytes

Contents

require_relative '../helpers/indented_grid'

Coprl::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

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.11 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.10 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.9 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.8 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.7 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.6 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.5 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.4 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.3 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.2 app/demo/components/multi_selects.pom
coprl-3.0.0.beta.1 app/demo/components/multi_selects.pom