Sha256: 08180609c9b0deed9767ffb1ce168c4784def78899c84263cc3c445efa363e9c

Contents?: true

Size: 1.44 KB

Versions: 12

Compression:

Stored size: 1.44 KB

Contents

require_relative '../helpers/indented_grid'

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

12 entries across 12 versions & 1 rubygems

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