primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Floating labels for Inputs

Open gtzinos opened this issue 9 years ago • 5 comments

Hi,

I am using dropdown list and when a user select an item the placeholder isn't more visible. I created a topic at the forum (https://forum.primefaces.org/viewtopic.php?f=35&t=51604) and we decided that is good to have this feature for dropdown element (maybe for more other elements), it gives the user a better experience.

gtzinos avatar Jul 10 '17 08:07 gtzinos

We have this covered in themes such as Ultima or Barcelona but can do it for core as well.

cagataycivici avatar Aug 23 '17 07:08 cagataycivici

@cagataycivici Does this also work for dropdowns now?

kc13greiner avatar Sep 13 '17 15:09 kc13greiner

@cagataycivici How does it work for dropdown with ultima theme? I tried with <span class="md-inputfield"> and <span class="ui-float-label"> but it does not work.

ccasallas avatar Sep 18 '17 20:09 ccasallas

I don't know about dropdowns, but I seem to be able to get things "working" with p-autoComplete, by doing the following: <span class="md-inputfield"><p-autoComplete id="products"><ng-template><!--Some code here--></ng-template></p-autoComplete><label for="products">Product</label></span>

By "working", I refer to this issue: https://github.com/primefaces/primeng/issues/4145

VNYoeri avatar Oct 12 '17 10:10 VNYoeri

Doesn't work with drop downs

AlejandroFlorin avatar Dec 18 '17 23:12 AlejandroFlorin