Reference Source
public class | source

SearchBar

Extends:

* → SearchBar

Class to add a search bar header to a page.

Static Member Summary

Static Public Members
public static

Member Summary

Public Members
public
public

Returns if there is text in the search bar.

public

state: *

Private Members
private

_onSelectedItemsChange(selectedItems: List): *

Add the new selected items to the state and update

private

Renders an icon.

Method Summary

Public Methods
public

render()

Renders the search bar.

Static Public Members

public static propTypes: * source

Public Members

public componentDidMount: * source

public isSearching: Boolean: * source

Returns if there is text in the search bar. If the user is searching something.

Return:

Boolean

If the user is currently searching

public state: * source

Private Members

private _onSelectedItemsChange(selectedItems: List): * source

Add the new selected items to the state and update

private _renderIcon: * source

Renders an icon.

Public Methods

public render() source

Renders the search bar.