Sha256: 39773cf460df305af08d24cc32093937bafac5149a85bfcddf81133d3c0a2231
Contents?: true
Size: 667 Bytes
Versions: 12
Compression:
Stored size: 667 Bytes
Contents
module Coprl module Presenters module Plugins module <%= classify(name) %> # Web Client Actions set up the the event handler data that will be consumed by a javascript class # This data will be stored on the DOM as a data attribute defined in the # file: views/components/assets/<%= underscore(name) %>.erb module WebClientActions def action_data_<%= underscore(name) %>_action(action, _parent_id, *) # Type, URL, Options, Params (passed into javascript event/action classes) [action.type, action.url, action.options.to_h, action.attributes.to_h] end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems