Label for MultiSelectDropdown

Hello,

can you provide an example on how to add a label to MultiSelectComponent please? The label should behave like the label of a TextBox. Ideally, it should be a floating label.

I am kind of lost how input elements like MultiSelectComponent or Listbox should be used in form. Is there an example of a complete form with all usual form input elements?

Regards,
Steffen

3 Replies 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team September 17, 2020 04:19 PM UTC

Hi Steffen, 

Thanks for contacting Syncfusion support. 

We have checked your query. To enable the floatlabel in Multiselect, we suggest you to set floatLabelType property. Setting floatLabelType as Always set the label element to be floated always at the top of the input element, setting Auto will float the label element when control gets focus and setting Never will not make the label element to float. Also please find the sample below for input elements inside the form.

Sample Link       : https://stackblitz.com/edit/multiselect-form?file=index.js 

Please let us know if you need any further assistance on this. 

Regards, 
Jeyanth. 


Marked as answer

SH Steffen Harbich September 18, 2020 08:38 AM UTC

Thanks, that helped! I didn't notice that the placeholder is the label in that case.


JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team September 21, 2020 05:49 AM UTC

Hi Steffen, 

We are glad to know that your issue has been resolved. Please let us know if you need any further assistance on this. 

Regards, 
Jeyanth. 


Loader.
Up arrow icon