Class: LightningUiKit::LayoutComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- LightningUiKit::LayoutComponent
- Defined in:
- app/components/lightning_ui_kit/layout_component.rb
Instance Method Summary collapse
-
#initialize(sidebar_width: "w-64", **options) ⇒ LayoutComponent
constructor
A new instance of LayoutComponent.
- #main_padding_class ⇒ Object
- #sidebar_width_class ⇒ Object
Methods inherited from BaseComponent
Methods included from HeroiconHelper
Constructor Details
#initialize(sidebar_width: "w-64", **options) ⇒ LayoutComponent
Returns a new instance of LayoutComponent.
7 8 9 10 |
# File 'app/components/lightning_ui_kit/layout_component.rb', line 7 def initialize(sidebar_width: "w-64", **) @sidebar_width = @options = end |
Instance Method Details
#main_padding_class ⇒ Object
20 21 22 |
# File 'app/components/lightning_ui_kit/layout_component.rb', line 20 def main_padding_class "lui:lg:pl-64" end |
#sidebar_width_class ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/components/lightning_ui_kit/layout_component.rb', line 12 def if @sidebar_width == "w-64" "lui:lg:w-64" else "lui:lg:#{@sidebar_width}" end end |