New answers tagged

0

@gs650x Sorry I don't have 50 reputation to comment directly to you. you can add a <div> element outside your <lightning-combobox>, and give this div element a overflow:visible style. FYI, my sample code is hereļ¼š <div style="overflow: visible"> <lightning-combobox options={typeOptions} onchange={handleChange} ...


0

EDIT: As you already have an attribute named selectedRows, you need to use a new attribute something else, like setSelectedRows you need to use two different attributes to store the selected rows and to reset the selected. Create one attribute for the selected rows and assign it to [] an empty array, whenever you want to unselect the selected rows. <...


0

Just to add another voice to this. I recently had a requirement to make a custom dropdown that included a checkbox group as its content instead of a single select list. The way I eventually achieved the 'click away to close' behaviour ended up being far simpler than I at first thought. For one thing, I completely avoided adding click handlers to the window, ...


2

You'll want to use the lightning:treeGrid. The children for each item are in a special attribute named _children. See the documentation (above) for all the details.


2

SecureEvent#setParam expects two parameters, a string and an object: componentEvent.setParam('searchText', beerSearchInput); If you want to use object notation, use the plural version, SecureEvent#setParams: componentEvent.setParams({searchText: beerSearchInput});


0

Below is my understanding :- It's because of the CSS class slds-p-around_medium. This adds padding around the div. If that div is inside the iteration, the padding repeats itself. If it's outside the iteration, I only get one padded div.


3

If you want some space left between the cards, you can use margin class like added below(depending on your need either you can make it less or more) - For doing less(try this ) - slds-m-top-xxx-small For doing More(try this ) - slds-m-top-x-small or slds-m-top-small or slds-m-top-medium <aura:component controller="ContactListController"> &...


0

These solutions did not appear to work for lightning-tabset in lwc. Interestingly aura's tabset has a class attribute, while lwc tabset does not. What does that tell us about why the same CSS override solutions do not work for lwc today? Borrowing from this solution this seems to work with lwc's tabset. It admittedly feels very hacky. renderedCallback() { ...


0

So I figured out a solution. Simply wrap everything with these: <div class="slds-grid slds-gutters"></div> and then <div class="slds-col"></div> around each list (my earlier code snippet) and I ended up with this: Now I just need to work on the sorting logic for the 3 lists so the problem is essentially solved. ...


0

I think you will need to change the structuring of your code to include 3 arrays containing the countries. You will need to prepare these arrays beforehand and use 2 iterations to render content. Here is a sample LWC code to demonstrate it (yours is aura but this is the quick way to view what you want). HTML: <template> <div class="app slds-...


0

Not sure where you want to maintain your translations, but here's a working example. If you keep an object that contains all your variables keyed first by their name, then by the language identifier, after that it's pretty simple to dynamically assign those variables based on the currently selected language. So for a template like this... <template> ...


3

The point of CSS styles in a framework is that you don't have to remember what specific things the styles do. Things like Bootstrap and SLDS provide a consistent user interface without knowing the specifics. It also allows customization so that you can change the classes and apply those changes consistently across the platform. It also allows salesforce.com ...


2

Since Rahul's answer didn't address the border on mouse hover (and I was working on this anyway), I'm going to give you a second answer. Key points: Per Rahul, you want to use the custom select event to set a selected property to true on the selected child component Similarly, you can use mouseover and mouseout events to set a public property on your child ...


0

We use the event to send data from child to parent. Public attribute to send data from parent to child. Looks like you are trying to fire an event from parent to child which does not work. Instead, You need to create a property on the case record to hold its selected state. Then you need a public property on the child component which will be set from the ...


1

For currency cell, you could use the lightning:formattedNumber base component to format the numbers as needed: <lightning:formattedNumber value="{!prod.F2Actuals}"/>


1

It works as expected: your columns are vertically centered in your grid. What I think you want to achieve is to center the columns on the page. In this case, I suggest you expand your grid to fit the page. One way could be to use vh units in the outer div and a relative height in the inner ones. Example <html xmlns="http://www.w3.org/2000/svg" ...


Top 50 recent answers are included