Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical SharePoint Framework (SPFx) Development

You're reading from   Practical SharePoint Framework (SPFx) Development Build modern, scalable, and efficient business solutions for SharePoint and Microsoft 365

Arrow left icon
Product type Paperback
Published in Jun 2025
Publisher Packt
ISBN-13 9781835466780
Length 442 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Franck Cornu Franck Cornu
Author Profile Icon Franck Cornu
Franck Cornu
Anoop T. Anoop T.
Author Profile Icon Anoop T.
Anoop T.
Arrow right icon
View More author details
Toc

Table of Contents (29) Chapters Close

Preface 1. Part 1: Getting Started with the SharePoint Framework
2. Chapter 1: Introducing Microsoft 365 and SharePoint Online for Developers FREE CHAPTER 3. Chapter 2: Ecosystem and Building Blocks around the SharePoint Framework 4. Chapter 3: Your First Steps with the SharePoint Framework 5. Chapter 4: Packt Product Management Solution: A Practical Use Case 6. Part 2: Building Web Parts with the SharePoint Framework
7. Chapter 5: Building a SharePoint Web Part 8. Chapter 6: Working with the Property Pane 9. Chapter 7: Connecting to Other Web Parts 10. Chapter 8: Deploying a SharePoint Web Part 11. Part 3: Building Extensions with the SharePoint Framework
12. Chapter 9: Building a Form Customizer 13. Chapter 10: Building an Application Customizer 14. Chapter 11: Building a Field Customizer 15. Chapter 12: Building a ListView Command Set 16. Chapter 13: Building a Search Query Modifier 17. Chapter 14: Building an Adaptive Card Extension 18. Chapter 15: Deploying Extensions 19. Part 4: Going Further with the SharePoint Framework
20. Chapter 16: Sharing Your Code Using Library Components 21. Chapter 17: Debugging Your Solution Efficiently 22. Chapter 18: Consuming APIs 23. Chapter 19: Writing Tests with SPFx 24. Chapter 20: Upgrading Your Solutions 25. Chapter 21: Leveraging Community Tools and Libraries 26. Chapter 22: Development Platforms 27. Index 28. Other Books You May Enjoy

Building a ListView Command Set

In the previous chapter, we learned what a field customizer is (one of the multiple elements we can create with SPFx). We looked into how to create a basic one and the different life cycle methods of a field customizer in detail and then modified the code of the field customizer such that its display changes based on its value. This was in line with our requirement, which was to allow users to easily see the products low in stock.

In this chapter, we will continue to the next stage of the low stock theme, in which we will understand how we can take action for products that are low in stock. Taking action means executing a command, hence, we will be looking at an element of SPFx called the ListView Command Set. This Command Set will be available when browsing a list page, and we will make the command(s) available only for certain list items, in our case, for products that are low in stock.

Some of the concepts in this chapter will be similar or...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical SharePoint Framework (SPFx) Development
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon