Class: PhlexKit::ComboboxItemIndicator

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/phlex_kit/combobox/combobox_item_indicator.rb

Overview

Trailing ✓ in a PhlexKit::ComboboxItem, visible (pure CSS) while the item's input is checked. See combobox.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ ComboboxItemIndicator

Returns a new instance of ComboboxItemIndicator.



5
6
7
# File 'app/components/phlex_kit/combobox/combobox_item_indicator.rb', line 5

def initialize(**attrs)
  @attrs = attrs
end

Instance Method Details

#view_templateObject



9
10
11
# File 'app/components/phlex_kit/combobox/combobox_item_indicator.rb', line 9

def view_template
  render Icon.new(:check, size: 24, **mix({ class: "pk-combobox-item-indicator" }, @attrs))
end