Class: NewTodoInput
- Defined in:
- lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb
Constant Summary
Constants included from Glimmer::Web::Component
Glimmer::Web::Component::ADD_COMPONENT_KEYWORDS_UPON_INHERITANCE
Instance Attribute Summary
Attributes included from Glimmer::Web::Component
#args, #markup_root, #options, #parent
Class Method Summary collapse
Methods included from Glimmer::Web::Component
add_component_keyword_to_classes_map_for, #add_observer, #attribute_setter, #bind_content, #can_add_observer?, #can_handle_observation_request?, component_keyword_to_classes_map, #content, #data_bind, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, included, #initialize, interpretation_stack, keywords_for_class, #local_respond_to?, #method_missing, #observer_registrations, #post_add_content, #post_initialize_child, #remove, #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
Class Method Details
.todo_input_class ⇒ Object
21 22 23 |
# File 'lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb', line 21 def todo_input_class 'new-todo' end |
.todo_input_styles ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb', line 25 def todo_input_styles super rule(".#{todo_input_class}") { padding '16px 16px 16px 60px' height '65px' border 'none' background 'rgba(0, 0, 0, 0.003)' box_shadow 'inset 0 -2px 1px rgba(0,0,0,0.03)' } rule(".#{todo_input_class}::placeholder") { font_style 'italic' font_weight '400' color 'rgba(0, 0, 0, 0.4)' } end |