Class: Keystone::Ui::FormPageComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Keystone::Ui::FormPageComponent
- Defined in:
- app/components/keystone/ui/form_page_component.rb
Constant Summary collapse
- DESKTOP_WRAPPER_CLASSES =
"hidden md:block"- TITLE_CLASSES =
"text-2xl font-semibold text-gray-900 dark:text-white"- SUBTITLE_CLASSES =
"mt-1 text-sm text-gray-500 dark:text-gray-400"
Instance Method Summary collapse
-
#initialize(title:, back_url:, subtitle: nil) ⇒ FormPageComponent
constructor
A new instance of FormPageComponent.
- #subtitle? ⇒ Boolean
Constructor Details
#initialize(title:, back_url:, subtitle: nil) ⇒ FormPageComponent
Returns a new instance of FormPageComponent.
10 11 12 13 14 |
# File 'app/components/keystone/ui/form_page_component.rb', line 10 def initialize(title:, back_url:, subtitle: nil) @title = title @back_url = back_url @subtitle = subtitle end |
Instance Method Details
#subtitle? ⇒ Boolean
16 17 18 |
# File 'app/components/keystone/ui/form_page_component.rb', line 16 def subtitle? !@subtitle.nil? end |