Hot answers tagged

2

The idea is that this value should be added to the datalist options and as selected value for the input. You can do it in Apex @AuraEnabled public static List<String> accountDeails() { List<Account> accList =[select Id from Account]; List<String> acName = new List<String>{'--ALL--'}; for(Account ac : accList) { ...


1

Any reason why are we setting pageReference back to a variable when we already have a local variable for the same. May be your pageReference is missing. This works very well. clickEdit: function (component , event, helper) { event.preventDefault(); // Preventing any default behaviour const navService = component.find("navService"); ...


1

You can simply add it in your template, if you want to: <datalist data-id="AccountList" id="AccountList" class=""> <option value="">-- ALL --</option> <option for:each={accountDeails} for:item='item' key={item} value={item}>{item}</option> </datalist> Note that using a template ...


1

You can use SLDS grid system. With the slds-grid class you define a flexbox then with slds-grid_align-center class you set the alignment of its content. So you can define a div with these two classes and putting the buttons inside <footer class="slds-modal__footer"> <div class="slds-grid slds-grid_align-center"> &...


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