Sha256: 54ee45ce5166958fef98946f699ccc5ca975633d6b2fe9861f036f82c6ec9fd6

Contents?: true

Size: 559 Bytes

Versions: 8

Compression:

Stored size: 559 Bytes

Contents

Voom::Presenters.define(:events_drawer) do
  helpers Voom::Presenters::Helpers::Inflector
  drawer 'Events' do
    menu do
      %i(field_level_events form_level_events).sort.each do |comp|
        item titleize(comp) do
          event :click do
            loads comp
          end
        end
      end
      %i(dialog autocomplete replaces toggle_visibility snackbar updates deletes posts).sort.each do |comp|
        item titleize(comp) do
          event :click do
            loads "#{comp}_action"
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 app/demo/events/nav/drawer.pom
voom-presenters-0.1.12 app/demo/events/nav/drawer.pom
voom-presenters-0.1.11 app/demo/events/nav/drawer.pom
voom-presenters-0.1.10 app/demo/events/nav/drawer.pom
voom-presenters-0.1.9 app/demo/events/nav/drawer.pom
voom-presenters-0.1.8 app/demo/events/nav/drawer.pom
voom-presenters-0.1.7 app/demo/events/nav/drawer.pom
voom-presenters-0.1.6 app/demo/events/nav/drawer.pom