Class: MatChipList

Inherits:
AngularMaterialComponent show all
Defined in:
lib/insite/examples/material_angular_io/components/mat_chip_list.rb

Instance Attribute Summary

Attributes inherited from AngularMaterialComponent

#ngcontent, #nghost

Instance Method Summary collapse

Instance Method Details

#add(value) ⇒ Object



6
7
8
# File 'lib/insite/examples/material_angular_io/components/mat_chip_list.rb', line 6

def add(value)
  mat_input(ngcontent => true).set(value + "\n")
end

#clear_input(value) ⇒ Object



10
11
12
# File 'lib/insite/examples/material_angular_io/components/mat_chip_list.rb', line 10

def clear_input(value)
  mat_input(ngcontent => true).clear
end

#remove(value) ⇒ Object



14
15
16
# File 'lib/insite/examples/material_angular_io/components/mat_chip_list.rb', line 14

def remove(value)
  mat_input(ngcontent => true).mat_icon.click
end

#set_input(value) ⇒ Object



18
19
20
# File 'lib/insite/examples/material_angular_io/components/mat_chip_list.rb', line 18

def set_input(value)
  mat_input(ngcontent => true).set(value)
end