How to create Sleek Angular Material Forms?

  Рет қаралды 707

Zoaib Khan

Zoaib Khan

Күн бұрын

#angular #material #formsoftware
✨ My Angular Shop: zoaibkhan.lemo...
📽️ My courses: zoaibkhan.com/...
✍️My blog for more free Angular posts: zoaibkhan.com/...
In this video, I guide you through transforming large Angular Material form fields into sleek, compact designs. Leverage Angular Material's theming APIs and configuration settings to globally adjust form fields, using density scaling for optimal compactness.
Socials:
Twitter - / zoaibdev
Facebook - / thisiszoaib
LinkedIn - / zoaib-khan-b6456815
Sections
00:00 Introduction and Overview
00:23 Understanding the Problem with Angular Material Form Fields
01:26 Project Setup and Initial Code Walkthrough
02:42 Implementing Global Style Changes
03:33 Adjusting Form Field Appearance and Spacing
05:30 Exploring Angular Material Theming APIs
06:12 Creating a Custom Theme
07:15 Applying Density to Components
08:00 Optimizing Component Density
08:34 Creating a Compact Theme
09:28 Applying Compact Theme to Form Fields
10:29 Final Thoughts and Demonstration
11:01 Conclusion and Next Steps

Пікірлер: 23
@gayatriajith6448
@gayatriajith6448 4 сағат бұрын
Thank you so much for this tutorial. I tried this following your class
@techwake360
@techwake360 10 сағат бұрын
Thank you so much, i struggled a lot for resizing the mat-form-field
@ZoaibKhan
@ZoaibKhan 8 сағат бұрын
Aah, me too, in the early days when no customization was available! There was a lot of overriding internal CSS styles - which messed everything up :)
@gayatriajith6448
@gayatriajith6448 4 сағат бұрын
Yes. I also struggled in version 14 and lower versions like 8. I could not find a way other than having some wrapper div css size adjustments. Thank you for this tutorial
@jeffreybijl7577
@jeffreybijl7577 12 сағат бұрын
Very nice, just what i needed. Keep up the good work!
@ZoaibKhan
@ZoaibKhan 8 сағат бұрын
Glad it helped!
@PK-vg9df
@PK-vg9df 15 сағат бұрын
Nice Videos - very informative! Keep it up. Greetings from Germany.
@ZoaibKhan
@ZoaibKhan 13 сағат бұрын
Thanks 🙏 Glad you liked :)
@MichaelSmallDev
@MichaelSmallDev 8 сағат бұрын
Good stuff as always. Forms are definitely one of the most used things by me and I'm sure plenty of others, while also being a bit finicky. I didn't realize how flexible it was with density. As for why they are so big by default, I'm fairly sure it is for accessibility. I think that is why some of the old appearance types were deprecated for MDC, and why a lot of decisions about size and density are made.
@ZoaibKhan
@ZoaibKhan 8 сағат бұрын
Thanks Micheal! I'm not sure about accessibility being the reason for the sizes, because the fields still follow all the standards required for it. All I could gather was the touch targets to be big enough - but that's more of a concern for mobile screens. Still, it's a bit weird none of the other well used and established component frameworks don't have these large sizes. I think should ask chat gpt for the answer 😂
@emilio_code
@emilio_code 9 сағат бұрын
Thanks for this video🤝
@ZoaibKhan
@ZoaibKhan 8 сағат бұрын
Welcome :)
@MikelAingeru
@MikelAingeru 6 сағат бұрын
Good video ,there were some tricks that didn't know. Can you do another video about easily create and implement a custom angular material color palette (out of material default colors) for light and dark themes?
@farhankhamran
@farhankhamran 15 сағат бұрын
Always something good, from your oven.
@ZoaibKhan
@ZoaibKhan 13 сағат бұрын
Thanks Farhan, glad you liked it :)
@fahmihidayatullah478
@fahmihidayatullah478 15 сағат бұрын
Very insightfull 👍 are you planning to make a table material section? Thank you
@ZoaibKhan
@ZoaibKhan 13 сағат бұрын
You mean in the dashboard template?
@fahmihidayatullah478
@fahmihidayatullah478 8 сағат бұрын
@@ZoaibKhan Yes correct
@ZoaibKhan
@ZoaibKhan 7 сағат бұрын
@@fahmihidayatullah478 Well, now that you mention it, yeah :)
@funatics6782
@funatics6782 28 минут бұрын
I also have a problem with the Mat Table when I change the screen size on mobile. The data inside the Mat Table overflows, going outside the Mat Table. How can I make it flexible so that when the screen size gets smaller, the data stays inside the table? THANK YOUUUUUUUU ANGULAR MASTER!!!!!!!!!!!
@franciscofdez8334
@franciscofdez8334 6 сағат бұрын
Thank you for iluminating us on how to use the angular material library properly. I don't understand why Google does not focus on its own library in order to make developers use it.
@ZoaibKhan
@ZoaibKhan 4 сағат бұрын
The docs need to be better for sure! But we can all help out as well in tips and tricks. Hopefully the official guides get better. Thanks for the feedback!
Angular's effect(): Use Cases & Enforced Asynchrony
33:54
Rainer Hahnekamp
Рет қаралды 3,4 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 84 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,4 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
How to Make Forms in Angular REUSABLE (Advanced, 2023)
21:10
Decoded Frontend
Рет қаралды 67 М.
Angular Material 18 Dark Theming with System Color Variables!
24:54
React Crash Course | Learn React Quickly | In 80 Minutes
1:17:07
WolfDenCode
Рет қаралды 1,5 М.
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 55 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,3 МЛН
Angular Crash Course | Learn modern Angular in 90 minutes
1:29:09
Code with Ahsan
Рет қаралды 1,2 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 76 М.
NSURLProtocol: How I Stole an App For My Wedding
56:25
Bryce Bostwick
Рет қаралды 49 М.
EASY Draggable Dashboard with Angular CDK DropList!
21:53
Zoaib Khan
Рет қаралды 1,3 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 84 МЛН