Hot answers tagged

2

Added based on comments As a standard you get only 4 values as stated. If you want to render based on custom width/height, you can use media queries The Media Queries Level 4 specification includes some syntax improvements to make media queries using features that have a "range" type, for example width or height, less verbose. Level 4 adds a range context ...


2

The critical update applies only if your attributes used in have a function expression $A.createComponent/$A.createComponents Lets say your attribute definition was as below var attributes = { 'chldfield1': field1, 'chldfield2': function (x,y) { console.log('test')}, 'chldfield3': field3 }; The above assumes your component has an attribute of type "...


2

You can have change handler on acct attribute so that whenever acct changes you can invoke a JS method load local field values. BUT because it is a Map type (type of javascript object), the change handler does not trigger without explicitly setting the acct - component.set("v.acct", account) in parent component (which somebody implemented). You can ...


1

I don't think there is a Text data type in flow. Try changing to string type, eg: var inputVariables = [ { name : "recordid", type : "String", value: "HardcodedIdIKnowIsValid" } ]; Also, it's probably a good idea to made sure you quotes are all the same type in the JSON (I doubt that this would crash anything though)


1

Do not specify a "name" attribute in order to handle application events. <aura:handler event="c:MSACommandCentralOnHover" action="{!c.handleHover}"/> This is mentioned in the documentation. The handler for an application event won’t work if you set the name attribute on <aura:handler>. Use the name attribute only when you’re ...


1

first of all your event type is Application so you don't need to Register event, so you need to update the logic of updateHover function. updateHover : function(component, event, helper){ var createEvent = $A.get("e.c:MSACommandCentralOnHover"); createEvent.setParams({"opp":event.currentTarget.dataset.value}); createEvent.fire(); }, ...


1

There's no such "out of the box" element that does this (at least as of Winter '20 and all prior releases), but there are plenty of open-source varieties you can look at, for example, this one (disclaimer, not my own, I do not guarantee suitability for any particular purpose).


1

Directly referring to date using {!v.EventDate} will show Raw format. You can use lightning:formattedDateTime for appropriately formatting according to your need using its attributes. Below is the example: <ol class="slds-list_ordered"> <li>{!v.EventDate}</li> <li><lightning:formattedDateTime value="{!v.EventDate}"/><...


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