Class: NewTodoInput
- Defined in:
- lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb
Instance Attribute Summary
Attributes included from Glimmer::Web::Component
#args, #markup_root, #options, #parent
Instance Method Summary collapse
Methods included from Glimmer::Web::Component
add_component_namespaces_for, #add_observer, #attribute_setter, #can_add_observer?, #can_handle_observation_request?, component_namespaces, #content, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, included, #initialize, interpretation_stack, #local_respond_to?, #method_missing, namespaces_for_class, #observer_registrations, #post_add_content, #post_initialize_child, #remove, #render, reset_component_namespaces, #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 Method Details
#todo_input_class ⇒ Object
20 21 22 |
# File 'lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb', line 20 def todo_input_class 'new-todo' end |
#todo_input_styles ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_input.rb', line 24 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 |