WebComponent which uses vaadin-combo-box (id=searchbox) and supports merging new items.
More...
WebComponent which uses vaadin-combo-box (id=searchbox) and supports merging new items.
Emits search event when searchbox.selectedItem has changed.
|
| static get | properties () |
| | WebComponent properties that can be used as HTML attributes. More...
|
| |
◆ constructor()
| UserSearchBar::constructor |
( |
| ) |
|
|
inline |
◆ handleSearchChanged()
| UserSearchBar::handleSearchChanged |
( |
| ) |
|
|
inline |
Dispatch search event with current searchbox.selectedItem.
◆ mergeItem()
| UserSearchBar::mergeItem |
( |
|
item | ) |
|
|
inline |
Add new item to searchbox, check if it matches an existing MakerLabs ID and update that item with the new details.
Triggers a re-render of the searchbox.
◆ properties()
| static get UserSearchBar::properties |
( |
| ) |
|
|
inlinestatic |
WebComponent properties that can be used as HTML attributes.
- Parameters
-
| items | Array of User/Machine info for search box with popup results.
Uses the following fields {Name, Email, Photo, imageStyle, iconStyle, style, secondaryStyle} |
◆ render()
| UserSearchBar::render |
( |
| ) |
|
|
inline |
LitElement lifecycle hook. Re-rendered after any update().
- Returns
- LitElement
html`` literal, containing desired DOM state.
◆ resetSelectedItem()
| UserSearchBar::resetSelectedItem |
( |
| ) |
|
|
inline |
Clear searchbox.selectedItem.
The documentation for this class was generated from the following file: