Sha256: b84fda64ba3dc2c091fc746716e23f5de246255e97683a11501b0c06e3ed36bc
Contents?: true
Size: 597 Bytes
Versions: 58
Compression:
Stored size: 597 Bytes
Contents
module NfgUi module Components module Utilities # Allows components to be setup to utilize disable_with module DisableWithable def data disable_with ? super.merge!(disable_with: disable_with) : super end def disable_with options.fetch(:disable_with, nil) end private def default_disable_with @default_disable_with ||= view_context.ui.nfg(:icon, :loader, text: 'Saving') end def non_html_attribute_options super.push(:disable_with) end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems