Class: MatSelect
- Inherits:
-
MaterialAngularIO::Component
- Object
- MaterialAngularIO::Component
- MatSelect
- Defined in:
- lib/insite/examples/material_angular_io/components/mat_select.rb
Instance Method Summary collapse
Instance Method Details
#option(*args) ⇒ Object
8 9 10 |
# File 'lib/insite/examples/material_angular_io/components/mat_select.rb', line 8 def option(*args) mat_option(parse_args(args).merge!(css: "[#{ngcontent}='']")) end |
#options(*args) ⇒ Object
4 5 6 |
# File 'lib/insite/examples/material_angular_io/components/mat_select.rb', line 4 def (*args) (parse_args(args).merge!(css: "[#{ngcontent}='']")) end |
#select(*values) ⇒ Object
12 13 14 |
# File 'lib/insite/examples/material_angular_io/components/mat_select.rb', line 12 def select(*values) values.each { |val| option(text: process_value(val)) }.click end |