Hot answers tagged

2

Its not Var. Its var (case sensitive). This is not possible because using LWC iterators you will be able to get item, index, firstItem, and lastItem. You can use either for:each or iterator:iteratorName. And in HTML you cannot do any calculations. Also getters is not possible because its inside loop. So, you have to implement in javascript only. Its ...


2

LWC does not support expression evaluation in the markup yet. I have raised an idea for it a few months back. You have alter your JS to support complex javascript object with index of your choice. import { LightningElement, track, api } from 'lwc'; export default class App extends LightningElement { @api empNames = [ { name: "A" , index : 1} ,...


1

CloudPages automatically insert a JS snippet at the bottom of the page for tracking purposes (you can see this by viewing the published page's source). To ensure it appears at the bottom (i.e., before the closing </body> tag), it will insert itself by performing a search-and-replace using the string, </body>. For example, if your source code ...


1

I used this in the email template directly and there I found out, that you need to check the HTML and Text version of your email. I already encountered this issue when everything seemed right in the HTML-version, however the snipped wasn't added to the text version, so I had to add it separately there. Another option is requesting to deactivate the check of ...


1

Use the "number" type instead: <lightning:input type="number" step="0.1" ... /> The "text" type is not suitable for your purpose.


Only top voted, non community-wiki answers of a minimum length are eligible