app/demo/events/nav/drawer.pom
Voom::Presenters.define(:events_drawer) do
helpers Voom::Presenters::Helpers::Inflector
events = %i[field_level_events form_level_events tagged_input parallel_events halted].sort
actions = %i[dialog replaces loads toggle_visibility snackbar updates deletes posts clear last_response prompt_if_dirty].sort
drawer 'Events' do
menu do
events.each do |comp|
item titleize(comp) do
event :click do
loads comp
end
end
end
actions.each do |comp|
item titleize(comp) do
event :click do
loads "#{comp}_action"
end
end
end
end
end
end