Sha256: 621320602f4ccb66b4f8b4c780aae178d6a3cc18b9cc67101fd3a884cac73757
Contents?: true
Size: 658 Bytes
Versions: 5
Compression:
Stored size: 658 Bytes
Contents
Voom::Presenters.define(:events_drawer) do helpers Voom::Presenters::Helpers::Inflector events = %i[field_level_events form_level_events tagged_input parallel_events].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
Version data entries
5 entries across 5 versions & 1 rubygems