Question:- What is Lightning Locker in Salesforce Lightning?
Answer:- The Lightning Locker service is a robust and powerful security architecture for the Lightning components. It enhances security by isolating Lightning components that belong to one namespace from those in a different namespace. It promotes best practices thus, enhancing the supportability of the code by only allowing access to supported APIs and removing access from non-published framework internals.
Question:- What is the importance of the implements in the Lightning component?
Answer:- Implements are used for referring to the platform interfaces that allow usage of the components in various contexts or grant access to additional context data. A component can use multiple interfaces with the help of implements.
Question:- What is the difference between and ?
Answer:- < ui:input> does not contain Lightning Design System styling, while < Lightning:input> contains
Question:- What is the use of Lightning:recordEditForm?
Answer:- In the Lightning:recordEditForm, the Lightning:inputField is used to create the editable fields. Using the Lightning: output field, the read-only information can be displayed. Lightning:recordEditForm has the following features: • It displays the record edit layout to edit a particular record • It displays the record to create the layout to create a particular record
Question:- What is an action provider and a value provider?
Answer:- Action provider allows the management of the actions, events, and handlers for the component. The value provider allows the usage of the component attribute’s value in the component Javascript and markup controller.
Question:- What are Lightning Web Components(LWC)?
Answer:- Lightning Web Components can help build the Lightning components. They are the traditional HTML elements that are developed with advanced Javascript and HTML elements. The components can be built by using any model and locating the components on the Lightning page. Salesforce Extensions for the Visual Studio code is required to develop the LWC, and salesforce CLI is used for deploying it from the desired organization.
Question:- What is Scratch org?
Answer:- Scratch org is an expandable Salesforce org that is used for the purpose of testing and development. It is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is completely configurable, enabling developers to imitate different Salesforce editions that include different features and preferences. The scratch org configuration file can be shared with other team members to carry out development. Additionally, packages can be installed and synthetic or dummy data can be deployed for testing. While its default duration is for seven days, the Scratch org can be created for 30 days after which it is deactivated.
Question:- What is the use of the meta configuration file in the LWC?
Answer:- The meta configuration file specifies the metadata values to the components. It will result in an error when changes are pushed if there is no configuration file for the component.
Question:- What is the use of Javascript in the LWC?
Answer:- 1. Javascript establishes HTML properties behavior. 2. If a function, class, and variable defined in the module needs to be imported, the import statement has to be used 3. Javascript files in the LWCs are the ES6 modules and everything declared in the module is local. 4. lwc is the core module in Lightning Web Components. The import statement imports LightningElement from the lwc module.
Question:- What is the purpose of the force:appHostable interface in the Salesforce Lightning component?
Answer:- In the Salesforce mobile app or the Lightning component, the force:appHostable interface can be used as a custom tab.
Question:- What is the purpose of the Lightning: action override in the Salesforce Lightning Component?
Answer:- The Lightning: action override allows a component to be implemented as an override for a standard action. It is possible to override the New, Tab, Edit, and View standard actions on most standard and custom components. It has no effect except when used within Lightning Experience, the Salesforce mobile app, and Experience Builder sites.
Question:- What are the tools present in Salesforce Lightning?
Answer:- 1. Lightning schema builder: It is a UI tool that is used to create and view fields, objects, and relationships 2. Lightning Connect: This integration tool makes it simpler for the Force.com app to consume the data from the external source, which compiles to OData spec 3. Lightning Process Builder: It is a UI tool used for the visualization and creation of automated business processes 4. Lightning Component Framework: It comprises extensions and components that allow the building of recyclable components, personalization of the Salesforce1 mobile app, and development of independent apps 5. Lightning App Builder: It is the latest UI tool that enables quick building of Lightning apps through components given by the Salesforce platform developers
Question:- How do the capture phase and bubble phase propagate?
Answer:- The capture phase propagates from top to bottom while the bubble phase propagates from bottom to top.
Question:- How can we define the field-level security in the Salesforce Lightning components?
Answer:- To define the field level security, Lightning:recordEditForm, force: record data, and Lightning: record form should be used.
