primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Floating labels for autocomplete component

Open ccasallas opened this issue 9 years ago • 5 comments

I'm submitting a:

[ ] bug report
[x] feature request
[ ] support request

I create a separated ticket to track floating labels enhancement on autocomplete component according to #4011 (at least in ultima theme).

ccasallas avatar Nov 01 '17 14:11 ccasallas

@ccasallas, I also created a separate issue: #4319, with a plunkr case. The plunkr case confirms that the current behaviour is not limited to Ultima, it uses Omega and still behaves the same way.... Bug report or new feature request is the only difference :)

VNYoeri avatar Nov 02 '17 15:11 VNYoeri

@VNYoeri I'm not sure if omega theme follow the material design guidelines, currently, does any component support floating labels?

ccasallas avatar Nov 02 '17 15:11 ccasallas

@ccasallas using Ultima, I got the datepicker working with floating labels out-of-the-box. Can't prove it right now (mobile and all that), but I'll get back to this asap.

VNYoeri avatar Nov 02 '17 16:11 VNYoeri

@ccasallas alright, so I got it working with a simple date-component. Codewise, in Ultima, it's the same as any <input> with a floating label, but instead of using <input> you just have to use the calendar-selector <p-calendar>.
Plunkr is failing me at the moment, so have a GIF as proof :) p-calendar-autocomplete-works

The template-code: <span class="md-inputfield"> <p-calendar showIcon="true" id="someDate"></p-calendar> <label for="someDate">Have a label</label> </span>

VNYoeri avatar Nov 03 '17 08:11 VNYoeri

Duplicate #4319

cagataycivici avatar Nov 06 '17 08:11 cagataycivici