Building Table Views with Phoenix LiveView Kindle Edition
by: Peter Ullrich (Author)
ASIN: B0BSRHQ9P9
Publisher finelybook 出版社: Pragmatic Bookshelf; (January 11, 2023)
Publication date: January 11, 2023
Language 语言: English
File size: 2030 KB
Print length: 107 pages
Book Description
As a web developer, you have to build tables. Lots and lots of tables. With table UIs making up such a significant part of your daily work, you need to know how to build the right table for the task, with all the needed features. Building a simple table is easy, but tables only become really useful with advanced features like pagination, sorting, and filtering. That’s where building a table can quickly become complicated. This book shows you how to implement advanced table features in a clean and reusable way.
You’ll build fast and interactive table UIs by leveraging Phoenix LiveView. Make vast amounts of data manageable with common but complex features like pagination, sorting, filtering, and inifinity scrolling. Use SOLID coding principles to make your queries reusable with query composition. Compartmentalize your UI with LiveComponents and learn how to handle user input securely with schemaless changesets. Share your view onto the data painlessly by storing your search parameters in the URL.
Data is one of the most valuable assets of your business, but you cannot unlock its potential if you don’t know how to make it accessible. This book shows you how to deliver that data to your users’ fingertips quickly.
“,”
Data is at the core of every business, but it is useless if nobody can access and analyze it. Learn how to generate business value by making your data accessible with advanced table UIs. This definitive guide teaches you how to bring your data to the fingertips of nontechnical users with advanced features like pagination, sorting, filtering, and infinity scrolling. Build reactive and reuseable table components by leveraging Phoenix LiveView, schemaless changesets, and Ecto query composition. Table UIs are the bread and butter for every web developer, so it is time to learn how to build them right.
From the Introduction
There’s a joke in web development that 50% of our work is building tables and the other 50% is building forms. This book is about the first 50%.
If you’re an Elixir developer, chances are that you have to build tables. Lots and lots of tables. So, with table UIs making up such a significant part of our daily work, it’s paramount to understand how to build them properly. This book is here to teach you exactly that.
In the following chapters we will see how to build a table UI with advanced features like sorting, filtering, pagination, and infinity scrolling. Using the marvelous Phoenix LiveView framework, we’ll make them interactive. We’ll work with LiveComponents and Ecto schemaless changesets to parse user input.
We’ll see how to organize our database operations using query composition and how to execute performance-heavy operations like sorting and filtering right in the database.
This book assumes that you know the basics of Elixir and how to set up a Phoenix LiveView application. If you’re unfamiliar with this, first check out the Elixir “Getting Started” guide, and the Phoenix “Installation” documentation.
You can find the complete codebase on GitHub. Feel free to download the code and play around with the application before diving into this book.
We have a lot of ground to cover, so open up your favorite code editor, turn to the next page, and let’s get started!
Amazon page