You need to sign in to do that
Don't have an account?
ADRIANA CALLEJA
How do I change lightning:dualListbox column width?
Hi, I'm working with lightning:dualListbox , I would like to custom it because the label's options are too long. I haven't found how does it works...
This is an example of my lightning:dualListbox
Thanks in advance!
Regards
This is an example of my lightning:dualListbox
Thanks in advance!
Regards
All Answers
I'll try it
Regards
.THIS .slds-dueling-list__column_responsive {
min-width: 45%;
}
.THIS .slds-dueling-list__column_responsive .slds-dueling-list__options {
min-width: 100%;
}
.THIS .slds-dueling-list__column_responsive {
flex: 0 1 var(--lwc-sizeSmall,15rem) !important;
min-width: 35rem;
}
If it is useful, Please make it Best Answer
.slds-dueling-list__column_responsive {
flex: 0 1 var(--lwc-sizeSmall,15rem);
flex-wrap: wrap;
overflow: hidden;
min-width: var(--lwc-sizeXxSmall,6rem);
}
to this:
.slds-dueling-list__column_responsive {
flex: 1 1 var(--lwc-sizeSmall,15rem);
flex-wrap: wrap;
overflow: hidden;
min-width: var(--lwc-sizeXxSmall,6rem);
}
To do this I added a static resource with the new CSS called CustomCSS. Then I created a Custom Lightening component with this code:
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<ltng:require styles="{!$Resource.CustomCSS}" />
<lightning:card iconName="standard:account" title="Enkode LLC Custom style :)">
</lightning:card>
</aura:component>
Then I added the new component to the Lightening Page. And easy peasy very simple... LOL
i need this funtinality with lwc
can someone plzz help me
thanks in advance