Skip to main content

Questions tagged [html-template-directives]

1 vote
2 answers
1k views

The Salesforce documentation states that lwc:if tags can be used with or or really any HTML tags. Is there a significant difference in functionality between adding a <template> vs a <div>...
Yona Tran's user avatar
2 votes
1 answer
1k views

I need the value attribute for a <lightning-formatted-url> in a for:each section of a LWC template to include the base url + a property from the current item, and I cannot figure out how this ...
gorav's user avatar
  • 4,581
0 votes
2 answers
1k views

I am trying to get a value from a list of objects to show up on the html page using the for:each directive. I have a then method that dynamically builds an array of objects that holds an id number and ...
Benton's user avatar
  • 51
1 vote
2 answers
7k views

I'm trying to conditionally hide the lightning-tab,using if:true directive .The "courses" array is populated or empty using @wire adaptor.I am trying to use if:true condition to check if ...
borkya's user avatar
  • 11
0 votes
0 answers
7k views

let's say i have <div class="slds-form-element__control"> <input type="date" id="form-element-expiration-date" ...
pincet's user avatar
  • 1,001
5 votes
3 answers
35k views

I have 8 parameters to render the elements conditionally, Is it possible to use expressions in if:true statement? for example: <template if:true={p1.data || p2.data || p3.data}> <!-- some ...
Lanjinest's user avatar
  • 435
1 vote
1 answer
3k views

Based on the field values of the Account, I want to display/hide parts of the component when it loads for the first time. I have tried so many things unsuccessfully and am hoping someone can help me ...
Irene's user avatar
  • 1,995
0 votes
1 answer
6k views

I used a marketing cloud template and I want to customize it with extra html (to make it render well on a specific email client). The thing is that when I click on code view > toggle 'show full ...
Catherine Martin's user avatar

15 30 50 per page