Sha256: 9723aef24ca521153d52b1b8b2e76db3a76ae444aa46b9f2fd0f14414074c42e
Contents?: true
Size: 1.2 KB
Versions: 6
Compression:
Stored size: 1.2 KB
Contents
require_relative '../helpers/indented_grid' Voom::Presenters.define(:menus) do helpers Demo::Helpers::IndentedGrid attach :top_nav attach :component_drawer page_title 'Menus' dialog id: :hello_world do title "Hello World!" actions do button 'Close' end end indented_grid do grid do column 1 column 5 do card height: '300px' do button icon: :more_vert do menu id: :dialog_test do item 'Some Dialog Action' do event :click do dialog :hello_world end end item 'Another Action' divider item 'Disabled Action', disabled: true item 'Yet Another Action' end end end end column 5 do card height: '300px' do button icon: :more_vert, position: :right do menu do item 'Some Action' item 'Another Action' divider item 'Disabled Action', disabled: true item 'Yet Another Action' end end end end end attach :code, file: __FILE__ end end
Version data entries
6 entries across 6 versions & 1 rubygems