Class: AddressForm
- Inherits:
-
Object
- Object
- AddressForm
- Includes:
- Glimmer::Web::Component
- Defined in:
- lib/glimmer-dsl-web/samples/hello/hello_component.rb,
lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb,
lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb,
lib/glimmer-dsl-web/samples/hello/hello_glimmer_component_helper/address_form.rb
Overview
AddressForm Glimmer Web Component (View component)
Including Glimmer::Web::Component makes this class a View component and automatically generates a new Glimmer HTML DSL keyword that matches the lowercase underscored version of the name of the class. AddressForm generates address_form keyword, which can be used elsewhere in Glimmer HTML DSL code as done inside HelloComponentListenersDefaultSlot below.
Defined Under Namespace
Classes: Address
Constant Summary collapse
- STATES =
{ "AK"=>"Alaska", "AL"=>"Alabama", "AR"=>"Arkansas", "AS"=>"American Samoa", "AZ"=>"Arizona", "CA"=>"California", "CO"=>"Colorado", "CT"=>"Connecticut", "DC"=>"District of Columbia", "DE"=>"Delaware", "FL"=>"Florida", "GA"=>"Georgia", "GU"=>"Guam", "HI"=>"Hawaii", "IA"=>"Iowa", "ID"=>"Idaho", "IL"=>"Illinois", "IN"=>"Indiana", "KS"=>"Kansas", "KY"=>"Kentucky", "LA"=>"Louisiana", "MA"=>"Massachusetts", "MD"=>"Maryland", "ME"=>"Maine", "MI"=>"Michigan", "MN"=>"Minnesota", "MO"=>"Missouri", "MS"=>"Mississippi", "MT"=>"Montana", "NC"=>"North Carolina", "ND"=>"North Dakota", "NE"=>"Nebraska", "NH"=>"New Hampshire", "NJ"=>"New Jersey", "NM"=>"New Mexico", "NV"=>"Nevada", "NY"=>"New York", "OH"=>"Ohio", "OK"=>"Oklahoma", "OR"=>"Oregon", "PA"=>"Pennsylvania", "PR"=>"Puerto Rico", "RI"=>"Rhode Island", "SC"=>"South Carolina", "SD"=>"South Dakota", "TN"=>"Tennessee", "TX"=>"Texas", "UT"=>"Utah", "VA"=>"Virginia", "VI"=>"Virgin Islands", "VT"=>"Vermont", "WA"=>"Washington", "WI"=>"Wisconsin", "WV"=>"West Virginia", "WY"=>"Wyoming" }
Constants included from Glimmer::Web::Component
Glimmer::Web::Component::ADD_COMPONENT_KEYWORDS_UPON_INHERITANCE
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Attributes included from Glimmer::Web::Component
#args, #component_style, #default_slot, #events, #markup_root, #options, #parent, #slot_elements, #style_block
Method Summary
Methods included from Glimmer::Web::Component
add_component, add_component_keyword_to_classes_map_for, add_component_style, #add_custom_event_listener, #add_observer, any_component?, any_component_style?, #attribute_setter, #bind_content, body_components, #can_add_attribute_observer?, #can_add_custom_event_listener?, #can_add_observer?, #can_handle_observation_request?, component_class_to_components_map, component_count, component_keyword_to_classes_map, component_styles, components, #content, #custom_event_listeners_for, #data_bind, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, head_components, included, #initialize, interpretation_stack, keywords_for_class, #local_respond_to?, #method_missing, #notify_custom_event_listeners, #notify_listeners, #observer_registrations, #post_add_content, #post_initialize_child, #remove, remove_all_components, remove_component, remove_component_style, #remove_custom_event_listener, #remove_observer, #render, reset_component_keyword_to_classes_map, #respond_to_missing?, #set_attribute
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::Web::Component
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
85 86 87 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_glimmer_component_helper/address_form.rb', line 85 def address @address end |