Dynamically populating label parameters

You can provide a string with placeholders, which are replaced by substitute values at runtime.

Let's create a label with the value Hello {0} and name it greeting. You can dynamically replace {0} with an attribute value. The syntax uses the format function, as follows:

{!format($Label.c.greeting, v.name)} ;//here name is the attribute on the component

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.133.160