0.0.10 • Published 5 years ago

ion-search-input v0.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ion-search-input

A simple ionic search component that renders an input to display the value as well as a search page.

How to use

npm install ion-search-input --save

Import in module
import { IonSearchInputModule } from 'ion-search-input';

@NgModule({
	//...
  imports: [
	//...
    IonSearchInputModule
  ],
  //...
})
export class AppModule {}
View
<ion-search-input [label]="'Teste'" [mock]="true" (selectedEvent)="test($event)"></ion-search-input>`

Input Properties

AttrTypeDetails
labelstringLabel that is displayed on the input as well as the navbar title (search screen).
mockbooleanIf true, will populate the input data with a mocked JSON that exists in the keyValue class. Default: false
datakeyValue[]JSON which will render the component options, the properties are id: number, value: string. More information in keyValue section.
modelnumberDefault value selected.
placeholderstringInput Placeholder. Default: 'Click to search'

Output Events

AttrDetails
selectedEventEvent triggered when selecting a radio and clicking the save button. The id of the selected option is sent.

Screenshots

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago