MakerLabs ACM
UserSearchBar Class Reference

WebComponent which uses vaadin-combo-box (id=searchbox) and supports merging new items. More...

Inheritance diagram for UserSearchBar:

Detailed Description

WebComponent which uses vaadin-combo-box (id=searchbox) and supports merging new items.

Emits search event when searchbox.selectedItem has changed.

Public Member Functions

 constructor ()
 
 render ()
 LitElement lifecycle hook. Re-rendered after any update(). More...
 
 handleSearchChanged ()
 Dispatch search event with current searchbox.selectedItem. More...
 
 resetSelectedItem ()
 Clear searchbox.selectedItem. More...
 
 mergeItem (item)
 Add new item to searchbox, check if it matches an existing MakerLabs ID and update that item with the new details. More...
 

Static Public Member Functions

static get properties ()
 WebComponent properties that can be used as HTML attributes. More...
 

Member Function Documentation

◆ constructor()

UserSearchBar::constructor ( )
inline
Here is the call graph for this function:

◆ 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
itemsArray 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: