Topic: MDBSelect: Customize the selectAll text
Hi:
Is there a way in which I can customize the selectAll text?

<MDBSelect
selectAll
search
multiple
color="primary"
getValue={this.getValueOfSelect}
getTextContent={this.getTextContentOfSelect}
options={this.state.options}
selected="Elija una opcion"
style={{ marginBottom: "15rem" }}
/>
Thank you very much!
Aliaksandr Andrasiuk
staff answered 2 years ago
Hi,
Unfortunately, there is no property to set custom styles to Select All's text. We will add it in the near future.
But you can use the next css code to achieve that behaviour:
.select-wrapper .select-dropdown li:nth-child(2) span{
//your styles
//....
}
Best regards.
Answered
- User: Free
- Premium support: No
- Technology: React
- MDB Version: 4.13.0
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No