Sha256: 8c17c8d45a0d29b2f58856f34202378a695f7d5420b4d76f01437dddb3daba58

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

require_relative '../helpers/indented_grid'

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

  indented_grid do
    display 'Dialogs'

    button 'Show Dialog' do
      event :click do
        dialog :hold_on
      end
    end

    dialog id: :hold_on do
      title "MDL Dialog"
      body 'This is an example of the Material Design Lite dialog component. Please use responsibly.'

      button 'Disabled action', disabled: true
      button 'Close'
    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/dialogs.pom
voom-presenters-0.1.7 app/demo/components/dialogs.pom
voom-presenters-0.1.6 app/demo/components/dialogs.pom
voom-presenters-0.1.5 app/demo/components/dialogs.pom
voom-presenters-0.1.4 app/demo/components/dialogs.pom
voom-presenters-0.1.3 app/demo/components/dialogs.pom
voom-presenters-0.1.2 app/demo/components/dialogs.pom
voom-presenters-0.1.1 app/demo/components/dialogs.pom
voom-presenters-0.1.0 app/demo/components/dialogs.pom