Module: BetterUi::Application::Components::Card::CardHelper
- Defined in:
- app/helpers/better_ui/application/components/card/card_helper.rb
Instance Method Summary collapse
-
#bui_card(title:, value:, trend: nil, change: nil, color: :green, theme: :default, size: :medium, rounded: :medium, shadow: :small, classes: nil, form: nil, **options) ⇒ String
Helper per creare una card per metriche e statistiche nelle dashboard applicative.
Instance Method Details
#bui_card(title:, value:, trend: nil, change: nil, color: :green, theme: :default, size: :medium, rounded: :medium, shadow: :small, classes: nil, form: nil, **options) ⇒ String
Helper per creare una card per metriche e statistiche nelle dashboard applicative
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'app/helpers/better_ui/application/components/card/card_helper.rb', line 64 def bui_card( title:, value:, trend: nil, change: nil, color: :green, theme: :default, size: :medium, rounded: :medium, shadow: :small, classes: nil, form: nil, ** ) render BetterUi::Application::Card::Component.new( title: title, value: value, trend: trend, change: change, color: color, theme: theme, size: size, rounded: rounded, shadow: shadow, classes: classes, ** ) end |