Building an Ionic Searchable Select Component with Angular

  Рет қаралды 12,539

Simon Grimm

Simon Grimm

Күн бұрын

Пікірлер: 40
@galaxies_dev
@galaxies_dev Жыл бұрын
Learn to build epic IONIC apps FAST by joining the Ionic Academy: ionicacademy.com/
@leonardopillay4200
@leonardopillay4200 2 жыл бұрын
Simon, you're a legend I've been waiting for this feature from ionic for years now.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Haha thanks Leonardo!
@irohwavez
@irohwavez 2 жыл бұрын
This is the first time I've done a standalone component, which has been on my whiteboard to try out for a while now. Thank you for doing this. Also, that leaf function is HOT. Thanks for sharing.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Glad I could help Jason!
@hassenmohammed3176
@hassenmohammed3176 2 жыл бұрын
thanks Simon! One reason I really enjoy using Ionic/Angular is because of your channel.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Thank you Hassen 🙌
@mugambialois4941
@mugambialois4941 2 жыл бұрын
Thank you for this component Simon. How would you load default selection, like case in point when you are editing a form and you have a value that should be selected
@ersachin139
@ersachin139 Жыл бұрын
Thanks Simon! This is really awesome. One query, I am trying the same but when I type something and filter the result, the changes are not reflecting in ion-modal. I can see changes outside ion-modal. Could you please help in this?
@peterchapman6210
@peterchapman6210 Жыл бұрын
Thankyou for this! I had been using Ionic Selectable, but it is stopping my being able to update to Ionic 7. I don't suppose you have tried using dk-virtual-scroll-viewport in this to get virtualization (or be a good another video)? I have tried but can't get it working right (itemHeight and scrolling issues), so we can handle large lists.
@Letgoplaysharkxx
@Letgoplaysharkxx 2 жыл бұрын
Thanks Simon for getting us updates. I like the inline modal. I was able to create a country filtering search with my rest api in my app.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Yeah that's a nice addition!
@Matheus_1582
@Matheus_1582 2 жыл бұрын
Hello Simon create an Angular project with this command. npm init ng once it starts you type the name of the project, then choose Angular V14 and then choose Angular V14 in blue color.
@abhilashkatta2593
@abhilashkatta2593 Жыл бұрын
How can we select all/deselect all , is there any way for that ?
Жыл бұрын
Thanks so much!
@galaxies_dev
@galaxies_dev Жыл бұрын
You're welcome Frank!
@navneetvats7702
@navneetvats7702 Жыл бұрын
Could you please share the repository for the same, My Search is not working
@ToddHale
@ToddHale 2 жыл бұрын
Awesome, thanks!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
No problem Todd!
@leonardopillay4200
@leonardopillay4200 2 жыл бұрын
Fixes for a few bugs when filtering on single select : itemSelected() { if (!this.multiple) { if (this.selected.length) { this.selected[0].selected = false; this.selected = []; } this.selected = this.data.filter((item) => item.selected); if (this.selected.length) { this.selectedChanged.emit(this.selected); this.isOpen = false; this.filtered = [...this.data]; } } }
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Thanks for sharing your fix Leonardo!
@victorbravo2409
@victorbravo2409 2 жыл бұрын
what is the pluging to see the functions of the component in html? thanks
@csgogeneral5729
@csgogeneral5729 Жыл бұрын
How I should use fill=outline, right now it says deprecated and I should use it on ion-input or ion-textarea. But with this we don't even have ion-input or ion-textarea!? Right now using:
@Ammuvlogs75
@Ammuvlogs75 Жыл бұрын
Hello simon ! please clarify my doubt can we use packages in ionic 6 if yes what are those packages plz reply me.
@galaxies_dev
@galaxies_dev Жыл бұрын
It depends more on the Angular version than your Ionic version!
@antoniomontalvocampos3870
@antoniomontalvocampos3870 Жыл бұрын
How to change the color of the search bar?
@bodhisatba
@bodhisatba 2 жыл бұрын
Hey simon, i had the thought the ther day when i saw this video, why he uses indexOf? I used this but my first uninformed thought was use includesi think. Now google suggested some article about JavaScript function string search and i clicked. And it says that includes is the fastes function. Then, why did you choose indexOf?
@bodhisatba
@bodhisatba 2 жыл бұрын
Array.some 285688.7 Ops/sec Array.filter 95376.8 Ops/sec Array.indexOf 1352013.0 Ops/sec Array.includes 4575837.0 Ops/sec Array.find 285742.5 Ops/sec
@galaxies_dev
@galaxies_dev 2 жыл бұрын
I'm not always making the best choices so well done on that research - pick the way that's faster!
@HOW-bt3et
@HOW-bt3et 5 ай бұрын
thanks mate
@galaxies_dev
@galaxies_dev 5 ай бұрын
You're welcome!
@sameersameer5288
@sameersameer5288 2 жыл бұрын
Hi there, I have a query Can we make AR VR app using ionic angular? Thanks
@galaxies_dev
@galaxies_dev 2 жыл бұрын
I think it's possible, but I will have to dive deeper into that topic!
@sameersameer5288
@sameersameer5288 2 жыл бұрын
@@galaxies_dev 👍👍👍 Thanks
@sven_93
@sven_93 2 жыл бұрын
So what happens if the data you pass in to this component actually has a "selected" property. Will it be overwritten by the checkboxes?
@auredud461
@auredud461 2 жыл бұрын
We can wrap the data items by a custom interface. By example: {data: ItemType, selected: boolean}[]
@jaswindersingh219
@jaswindersingh219 2 жыл бұрын
@simon time has come you start a single playlist of an complete admin panel using ionic(ios & android included) Also starting a open repo for such industry level projects are also good idea
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Good idea for a livestream project maybe!
@jaswindersingh219
@jaswindersingh219 2 жыл бұрын
@@galaxies_dev yes so that the public can be confident to use ionic for the main stream.
@kitty_cat687
@kitty_cat687 2 жыл бұрын
very nice! only about the search, i thing ng2-search-filter is easier. html ts filter: string module.ts import { Ng2SearchPipeModule } from 'ng2-search-filter'; imports: [ ... Ng2SearchPipeModule ]
What's new in Ionic 6.2 🎉
19:26
Simon Grimm
Рет қаралды 9 М.
How to use Ionic Storage v3 with Ionic Angular
20:46
Simon Grimm
Рет қаралды 15 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 114 МЛН
Angular v19 Developer Event
22:54
Angular
Рет қаралды 63 М.
ngTemplateOutlet is WAY more useful than I realised
16:36
Joshua Morony
Рет қаралды 77 М.
How to Share Data Between Pages in Ionic Apps using Angular
23:38
How to Pass Data Between Pages in Ionic Apps using Angular
27:00
Simon Grimm
Рет қаралды 15 М.
Angular 17 Features With Examples - You Must Know That
14:44
Monsterlessons Academy
Рет қаралды 39 М.
How to Cache API Responses with Ionic & Capacitor
30:10
Simon Grimm
Рет қаралды 9 М.
How to Handle User Roles in Ionic Apps with Guard & Directives
36:30
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 720 М.
How to Write Unit Tests for your Ionic Angular App
41:58
Simon Grimm
Рет қаралды 10 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59