Class: Daisy::DataDisplay::TextRotateComponent
- Inherits:
-
LocoMotion::BaseComponent
- Object
- ViewComponent::Base
- LocoMotion::BaseComponent
- Daisy::DataDisplay::TextRotateComponent
- Includes:
- LocoMotion::Concerns::TippableComponent
- Defined in:
- app/components/daisy/data_display/text_rotate_component.rb
Defined Under Namespace
Classes: ItemComponent
Constant Summary
Constants inherited from LocoMotion::BaseComponent
LocoMotion::BaseComponent::EMPTY_PART_IGNORED_TAGS, LocoMotion::BaseComponent::SELF_CLOSING_TAGS
Instance Attribute Summary collapse
-
#texts ⇒ Object
readonly
Returns the value of attribute texts.
Attributes inherited from LocoMotion::BaseComponent
Instance Method Summary collapse
- #before_render ⇒ Object
-
#initialize(texts: nil, **kws, &block) ⇒ TextRotateComponent
constructor
Creates a new Text Rotate component.
Methods inherited from LocoMotion::BaseComponent
build, #component_ref, #config_option, #cssify, define_modifier, define_modifiers, define_part, define_parts, define_size, define_sizes, #empty_part_content, #inspect, #part, register_component_initializer, register_component_setup, #rendered_css, #rendered_data, #rendered_html, #rendered_stimulus_controllers, #rendered_tag_name, renders_many, renders_one, set_component_name, #set_loco_parent, #strip_spaces
Methods included from LocoMotion::Concerns::InspectableComponent
Constructor Details
#initialize(texts: nil, **kws, &block) ⇒ TextRotateComponent
Creates a new Text Rotate component.
109 110 111 112 113 |
# File 'app/components/daisy/data_display/text_rotate_component.rb', line 109 def initialize(texts: nil, **kws, &block) super(**kws, &block) @texts = texts end |
Instance Attribute Details
#texts ⇒ Object (readonly)
Returns the value of attribute texts.
96 97 98 |
# File 'app/components/daisy/data_display/text_rotate_component.rb', line 96 def texts @texts end |
Instance Method Details
#before_render ⇒ Object
115 116 117 118 119 120 |
# File 'app/components/daisy/data_display/text_rotate_component.rb', line 115 def before_render super setup_component setup_texts if texts end |