Sha256: fe6e4642a7b4158c5fb1090eb583b73403bb39b04de0e12e3b23e81764b9c236
Contents?: true
Size: 844 Bytes
Versions: 42
Compression:
Stored size: 844 Bytes
Contents
# frozen_string_literal: true module ConnectExtension private def component_html_data super connect_options end def connect_options_selector content.to_s.parameterize.underscore end def connect_opts selector = options[:refresh][:target][:selector] options[:refresh][:target][:selector] = selector.presence || "##{connect_options_selector}" options[:refresh].merge({ connect: { target: options[:refresh].delete(:target), event: options[:refresh].delete(:event), mode: options[:refresh].delete(:mode) } }) end def connect_options add_html_data('connect', value: options[:connect]) if options[:connect] end end
Version data entries
42 entries across 42 versions & 1 rubygems
Version | Path |
---|---|
ui_bibz-3.0.0.alpha3 | lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb |
ui_bibz-3.0.0.alpha2 | lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb |