Module: Iron::ApplicationHelper
Constant Summary
collapse
- TAILWIND_MERGER =
TailwindMerge::Merger.new.freeze
Constants included
from IconsHelper
IconsHelper::SPRITE_PATH
Instance Method Summary
collapse
#icon
#avatar
Methods included from UiHelper
#back_button_to, #badge
#current_content_page?
#content_type_sidebar_url
#button_to_copy_to_clipboard, #qr_code_image, #web_share_button
#field_definition_color, #field_definition_icon, #field_definition_type_options
#file_field_fallback_icon
Instance Method Details
#tw(*classes) ⇒ Object
8
9
10
|
# File 'app/helpers/iron/application_helper.rb', line 8
def tw(*classes)
TAILWIND_MERGER.merge(classes.reject(&:blank?).compact.join(" "))
end
|
#unique_id ⇒ Object
12
13
14
|
# File 'app/helpers/iron/application_helper.rb', line 12
def unique_id
rand(10000000..100000000)
end
|