We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

1

I tried your exact code and it worked for me, both from markup and init handler in javascript <aura:application > <aura:attribute name="colorPalette" type="List" default="['red', 'green', 'blue']" /> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:iteration items="{!v.colorPalette}" var="item"> <p&...


1

# is for 1 time binding, only the value passed/assigned before UI renders will be shown in UI and any further changes will not reflect in UI, so, it is recommended to use ! if you want to reflect the changes dynamically. Also you should use v. in component. Below change in soqlField component should work: <aura:if isTrue="{!v.field.fieldType == 'url'}"&...


1

Relevant LWC recipes Example. You can also just use force:hasRecordId and force:lightningQuickAction tag and use the record id from the parent aura component to pass it to a child LWC component. This will allow it to be used as a quick action.


1

For now, you can use an Aura Component to wrap your LWC component, then make that Aura Component a Quick Action. Doing this will allow you to add it to the page as a button in the upper-right menu for a record.


1

To use Javascript and a lightning web component instead of aura you can use a dynamic class change variable for the section. <template> <div id="ExpandableCalendarSection" class={BookCalClass}> <h3 class="slds-section__title" style='padding-bottom:0;'> <button aria-controls="expandoBookingCalendar" aria-expanded="true" ...


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