Hello Friends,
Is there any way I can use the Float Label in a Dropdown?
Regards,
Henrique Palato
Float Label Dropdown
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Please use like this;
and see autoDisplayFirst (Whether to display the first item as the label if no placeholder is defined and value is null.) definition in https://www.primefaces.org/primeng/#/dropdown
Please, if you have, remove null value of option .
Code: Select all
<span class="ui-float-label">
<p-dropdown id="float-input" [autoDisplayFirst]="false" [options]="cities1" [(ngModel)]="selectedCity1" [autoWidth]="false"></p-dropdown>
<label for="float-input">Username</label>
</span>
Please, if you have, remove null value of option .
-
- Posts: 1
- Joined: 29 Mar 2019, 16:02
With floating label dropdown, how to unset dropdown value once user selected any value (mistakenly for optional dropdown)?
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Sorry for the delayed response. We have made some improvements in this regard. Please see our demo page;
https://primefaces.org/primeng/showcase/#/floatlabel
Best Regards,
Sorry for the delayed response. We have made some improvements in this regard. Please see our demo page;
https://primefaces.org/primeng/showcase/#/floatlabel
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests