Contents
How to define a component in Lightning component bundle?
An attribute marked as required in the component definition automatically appears, unless it has a default value assigned to it. For Lightning page interfaces, the design resource supports only attributes of type Integer, String, or Boolean.
What should I know about lightning Web Components?
Refer to this blog post for a Lightning Web Components version. If you’re comfortable with how a Lightning Component works and want to build production-grade applications for use in your org or to sell in AppExchange, this article is a must read.
What is welcome mat in Lightning design system?
The welcome mat (aka onboarding modal) is a blocking modal component that appears the first time a user logs into an app after certain scenarios, such as new user, new feature available, or major application updates, are activated. It can contain primary and secondary messages, with an optional call to action.
How to create an aura component in Lightning?
design:attribute Attribute Description name Required attribute. Its value must match placeholder Input placeholder text for the attribute required Denotes whether the attribute is require type The design attribute’s data type. Color
In the Lightning Components framework HTML tags are treated as a first-class components. and the framework auto translated the standard HTML tags to tag. such as, framework automatically converts a standard HTML tag to below component. and The Almost of HTML5 tags are supported in lightning component framework.
How to control which attributes are exposed to the Lightning app builder?
Use a design resource to control which attributes are exposed to builder tools like the Lightning App Builder, Experience Builder, or Flow Builder.
Where do I find the HTML for my Lightning component?
Every UI component must have an HTML file with the root tag . The HTML file follows the naming convention .html, such as myComponent.html. Create the HTML for a Lightning web component declaratively, within the tag. The HTML template element contains your component’s HTML.
What should the class name be in lightning.js?
The convention is for the class name to be Pascal Case, where the first letter of each word is capitalized. For myComponent.js, the class name is MyComponent. Extend LightningElement to create a JavaScript class for a Lightning web component.
Do you need a hyphen for a lightning component?
Lightning web components match web standards wherever possible. The HTML standard requires that custom element names contain a hyphen. You can use underscores in component folder names, but they don’t map to kebab case in markup.