Building an Ionic Searchable Select Component with Angular

  Рет қаралды 11,872

Simon Grimm

Simon Grimm

Күн бұрын

We build a cool reusable searchable select component with Ionic Angular so we don't rely on any external packages anymore!
🔥 The fastest way to learn Ionic: ionicacademy.com/
⚡️ Just getting started?
Grab a free 46 pages eBook: ionicacademy.com/ionic-quicks...
#############################
👨‍💻 Want to read instead of watch?
Here's the full Ionic tutorial: ionicacademy.com/ionic-search...
🤷‍♂️ Want more Ionic tutorials?
There you go: devdactic.com/
#############################
❤️ You can also find me on:
Instagram: / simongrimm_
Twitter: / schlimmson
Facebook: / devdactic
TikTok: / simongrimm_
Or join the Simonics Facebook group:
/ simonics
#############################
00:00 Intro
00:57 Standalone Component Setup
03:03 Opening the Modal
07:35 Passing Data to the Component
10:19 Displaying the Data
16:55 Emitting Data from the Searchable Select
20:51 Adding the Search Functionality
27:46 Outro
#ionic #angular #webdevelopment

Пікірлер: 40
@galaxies_dev
@galaxies_dev Жыл бұрын
Learn to build epic IONIC apps FAST by joining the Ionic Academy: ionicacademy.com/
@leonardopillay4200
@leonardopillay4200 Жыл бұрын
Simon, you're a legend I've been waiting for this feature from ionic for years now.
@galaxies_dev
@galaxies_dev Жыл бұрын
Haha thanks Leonardo!
@irohwavez
@irohwavez Жыл бұрын
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 Жыл бұрын
Glad I could help Jason!
@nofamilyreview8251
@nofamilyreview8251 Жыл бұрын
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 Жыл бұрын
Yeah that's a nice addition!
@hassenmohammed3176
@hassenmohammed3176 Жыл бұрын
thanks Simon! One reason I really enjoy using Ionic/Angular is because of your channel.
@galaxies_dev
@galaxies_dev Жыл бұрын
Thank you Hassen 🙌
@mugambialois4941
@mugambialois4941 Жыл бұрын
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
@ToddHale
@ToddHale Жыл бұрын
Awesome, thanks!
@galaxies_dev
@galaxies_dev Жыл бұрын
No problem Todd!
@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?
Жыл бұрын
Thanks so much!
@galaxies_dev
@galaxies_dev Жыл бұрын
You're welcome Frank!
@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.
@victorbravo2409
@victorbravo2409 Жыл бұрын
what is the pluging to see the functions of the component in html? thanks
@csgogeneral5729
@csgogeneral5729 8 ай бұрын
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:
@navneetvats7702
@navneetvats7702 Жыл бұрын
Could you please share the repository for the same, My Search is not working
@HOW-bt3et
@HOW-bt3et Ай бұрын
thanks mate
@galaxies_dev
@galaxies_dev Ай бұрын
You're welcome!
@leonardopillay4200
@leonardopillay4200 Жыл бұрын
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 Жыл бұрын
Thanks for sharing your fix Leonardo!
@Matheus_1582
@Matheus_1582 Жыл бұрын
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 8 ай бұрын
How can we select all/deselect all , is there any way for that ?
@antoniomontalvocampos3870
@antoniomontalvocampos3870 Жыл бұрын
How to change the color of the search bar?
@Supersuma5
@Supersuma5 Жыл бұрын
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!
@sven_93
@sven_93 Жыл бұрын
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 Жыл бұрын
We can wrap the data items by a custom interface. By example: {data: ItemType, selected: boolean}[]
@bodhisatba
@bodhisatba Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
I'm not always making the best choices so well done on that research - pick the way that's faster!
@sameersameer5288
@sameersameer5288 Жыл бұрын
Hi there, I have a query Can we make AR VR app using ionic angular? Thanks
@galaxies_dev
@galaxies_dev Жыл бұрын
I think it's possible, but I will have to dive deeper into that topic!
@sameersameer5288
@sameersameer5288 Жыл бұрын
@@galaxies_dev 👍👍👍 Thanks
@jaswindersingh219
@jaswindersingh219 Жыл бұрын
@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 Жыл бұрын
Good idea for a livestream project maybe!
@jaswindersingh219
@jaswindersingh219 Жыл бұрын
@@galaxies_dev yes so that the public can be confident to use ionic for the main stream.
@kitty_cat687
@kitty_cat687 Жыл бұрын
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 ]
How to Handle User Roles in Ionic Apps with Guard & Directives
36:30
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 635 М.
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 19 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 12 МЛН
How to use Ionic Storage v3 with Ionic Angular
20:46
Simon Grimm
Рет қаралды 15 М.
ngTemplateOutlet is WAY more useful than I realised
16:36
Joshua Morony
Рет қаралды 73 М.
React Native vs Flutter - Which should you use?
22:31
Simon Grimm
Рет қаралды 16 М.
Ionic Responsive Design and Navigation for All Screens
36:28
Simon Grimm
Рет қаралды 18 М.
How to Cache API Responses with Ionic & Capacitor
30:10
Simon Grimm
Рет қаралды 9 М.
How to Pass Data Between Pages in Ionic Apps using Angular
27:00
Simon Grimm
Рет қаралды 15 М.
Building the Twitter UI with Ionic Components | Built with Ionic
37:59
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 6 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 166 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 607 М.