- App created using the Ionic framework and the Ionic Selectable search component to create a list of selectable elements.
- Tutorial code from Simon Grimm at the Ionic Acdemy - see 👏 Inspiration below
- Note: to open web links in a new window use: ctrl+click on link
- array of data used to test selectable searches.
- Ionic/angular v6
- Ionic v6
- Angular v15
- Ionic Selectable v4 An Ionic component similar to Ionic Select, that allows user to search items, including async search, infinite scrolling and more. @ionic-selectable/angular exists but has no documentation so I did not use it.
- Run
npm i
to install dependencies - To start the server on localhost://8100 type: 'ionic serve'
<ion-item>
<ion-label>Group example</ion-label>
<ionic-selectable
[(ngModel)]="group"
itemValueField="id"
itemTextField="name"
groupTextField="type"
[items]="groups">
<ng-template ionicSelectableGroupTemplate let-group="group">
{{ group.text }}
</ng-template>
</ionic-selectable>
</ion-item>
-
Features copied from Ionic component documentation:
-
Single selection
-
Multiple selection
-
Search items
-
Search items asynchronously
-
Search by several item fields
-
Forms
-
InfiniteScroll
-
VirtualScroll
-
Templates
-
Grouping items
-
Editing, adding and deleting items
-
Disabling items
- Status: Working
- To-do: Nothing
- Project inspired by Simon Grimm´s Youtube video: Ionic Searchable Select Component Customisation
- This project is licensed under the terms of the MIT license.
- Repo created by ABateman, email: gomezbateman@yahoo.com