Table of Contents
What is $a and a Util in lightning?
$A is how you gain access to the underlying Aura framework, such as enqueuing actions, getting application events, managing the Aura rendering life cycle, and various utility methods.
What is utility in Salesforce?
The utility bar is a specialized type of Lightning page that gives your users quick access to common productivity tools, like Notes and Recent Items. It appears as a fixed footer that users can access to open utilities in docked panels. Some utilities support pop-out, which lets them open in a new browser window.
Why we use $a in lightning component?
The $A namespace is the entry point for using the framework in JavaScript code. It allows you to interact with the framework.
What is a util toggleClass?
util. toggleClass(cmp, ‘class’) , which adds or removes the class. The cmp parameter can be component or a DOM element.
What is a utility item?
“Utility” refers to an item which is designed for usefulness or practical use, so in turn most of the items kept in this room have functional attributes.
Where are utility items in Salesforce?
How to Add Utility Item in SalesforceFrom the Home tab in Setup, enter App in the Quick Find box, then select App Manager.To edit or add a utility bar to an existing app, click Edit in the dropdown menu next to your app. … Click the Utility Items tab and add the utilities you want(Like Recent Items,Macros,History etc.,)More items…•
What is difference between lightning components and lightning Web Components?
Aura based lightning components are created using JS, HTML, but LWC is directly built on the web stack. The addition of above features gives more power to the web stack to build lightning UI components. It doesn’t require any mid-layer to the browser.
What is LWC in Salesforce?
What are Lightning Web Components? LWC is a new programming model to develop Salesforce lightning components. It’s a UI framework that is built using native HTML and modern JavaScript.
What is Aura in Salesforce lightning?
Aura is an open-source UI framework built by Salesforce for developing dynamic web apps for mobile and desktop devices. The lightning component framework is not different from the Aura framework rather it is a subset of the Aura framework. The Lightning Component framework is built on the open-source Aura framework.
What is Aura ID in Salesforce?
aura:id is a local id. A local ID is an ID that is only scoped to the component. A local ID is often unique but it’s not required to be unique.
How do you override lightning CSS?
Override CSS in LWC using External Stylesheet Let’s first try to update the CSS of the title of our lightning-card on client-side from the browser. Right-click on the title of the card and click Inspect. It will take you to the Console. Add simple CSS to change the color of the title.
How do you add CSS to Salesforce lightning?
You can add CSS to a lightning component bundle by clicking the STYLE button in the Developer Console sidebar. after click on the STYLE button on component bundle, new CSS file is create with .
base64Decode (inputString)
Converts a Base64-encoded String to a Blob representing its normal form.
convertFromHex (inputString)
Converts the specified hexadecimal (base 16) string to a Blob value and returns this Blob value.
convertToHex (inputBlob)
Returns a hexadecimal (base 16) representation of the inputBlob. This method can be used to compute the client response (for example, HA1 or HA2) for HTTP Digest Authentication (RFC2617).
urlDecode (inputString, encodingScheme)
Decodes a string in application/x-www-form-urlencoded format using a specific encoding scheme, for example “UTF-8.”
urlEncode (inputString, encodingScheme)
Encodes a string into the application/x-www-form-urlencoded format using a specific encoding scheme, for example “UTF-8.”
abbreviate (maxWidth)
Returns an abbreviated version of the String, of the specified length and with ellipses appended if the current String is longer than the specified length; otherwise, returns the original String without ellipses.
abbreviate (maxWidth, offset)
Returns an abbreviated version of the String, starting at the specified character offset and of the specified length. The returned String has ellipses appended at the start and the end if characters have been removed at these locations.
capitalize ()
Returns the current String with the first letter changed to title case.
center (size)
Returns a version of the current String of the specified size padded with spaces on the left and right, so that it appears in the center. If the specified size is smaller than the current String size, the entire String is returned without added spaces.
center (size, paddingString)
Returns a version of the current String of the specified size padded with the specified String on the left and right, so that it appears in the center. If the specified size is smaller than the current String size, the entire String is returned without padding.
codePointBefore (index)
Returns the Unicode code point value that occurs before the specified index.
codePointCount (beginIndex, endIndex)
Returns the number of Unicode code points within the specified text range.