Class: Daisy::DataInput::CallyComponent::MonthComponent
- Inherits:
-
LocoMotion::BaseComponent
- Object
- ViewComponent::Base
- LocoMotion::BaseComponent
- Daisy::DataInput::CallyComponent::MonthComponent
- Defined in:
- app/components/daisy/data_input/cally_component.rb
Overview
Note:
This is used internally by CallyComponent
A component representing a single month in the calendar.
Constant Summary
Constants inherited from LocoMotion::BaseComponent
LocoMotion::BaseComponent::EMPTY_PART_IGNORED_TAGS, LocoMotion::BaseComponent::SELF_CLOSING_TAGS
Instance Attribute Summary
Attributes inherited from LocoMotion::BaseComponent
Instance Method Summary collapse
- #before_render ⇒ Object
- #call ⇒ Object
-
#initialize(**kws) ⇒ MonthComponent
constructor
A new instance of MonthComponent.
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
Constructor Details
#initialize(**kws) ⇒ MonthComponent
63 64 65 66 67 |
# File 'app/components/daisy/data_input/cally_component.rb', line 63 def initialize(**kws) super @offset = config_option(:offset) end |
Instance Method Details
#before_render ⇒ Object
69 70 71 72 73 74 |
# File 'app/components/daisy/data_input/cally_component.rb', line 69 def before_render super set_tag_name(:component, "calendar-month") add_html(:component, { offset: @offset }) if @offset end |
#call ⇒ Object
76 77 78 |
# File 'app/components/daisy/data_input/cally_component.rb', line 76 def call part(:component) end |