The component
During the development of this component, we will override the standard action New in the Movie object, so we need to build some kind of a modal. (It looks like an alert window, but it's a little bit fancier.) Due to the restrictions that the modal is not shown while you override a standard action with a Lightning component, we need to build a modal like a page with some components.
We need to build two components: our modal and an SVG component. We will start with the SVG component, which will display an icon of the Lightning design system (https://www.lightningdesignsystem.com/icons/). The icon can be displayed on a button, or, in our case, it is the closing icon of our modal window.
Let's build this little component:
- First ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access