Sha256: 6f447bb32f6d480b294e9463d10a33547687c6d8956cfc4005cc832e1330d9da
Contents?: true
Size: 535 Bytes
Versions: 8
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true module NfgUi module Components module Traits # Access to pre-designed Icon traits module Icon TRAITS = %i[loader tip].freeze def loader_trait options[:icon] = 'spinner spin fw' end # The defacto "(?)" tip icon # Usage: # ui.nfg :icon, :tip, tooltip: 'The tip' def tip_trait options[:icon] = NfgUi::DEFAULT_TIP_ICON options[:theme] = NfgUi::DEFAULT_TIP_THEME end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems