2021-12-09 17:24:42 +03:00
|
|
|
<div class="card">
|
|
|
|
|
<h5>Float Label</h5>
|
2023-12-20 10:48:11 +03:00
|
|
|
<p>
|
|
|
|
|
All input text components support floating labels by adding
|
|
|
|
|
(<mark>.p-float-label</mark>) to wrapper class.
|
|
|
|
|
</p>
|
2021-12-09 17:24:42 +03:00
|
|
|
<div class="grid p-fluid mt-3">
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="inputtext"
|
|
|
|
|
pInputText
|
|
|
|
|
[(ngModel)]="value1"
|
|
|
|
|
/>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="inputtext">InputText</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-autoComplete
|
|
|
|
|
inputId="autocomplete"
|
|
|
|
|
[(ngModel)]="value2"
|
|
|
|
|
[suggestions]="filteredCountries"
|
|
|
|
|
(completeMethod)="searchCountry($event)"
|
|
|
|
|
field="name"
|
|
|
|
|
></p-autoComplete>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="autocomplete">AutoComplete</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2022-07-22 13:13:50 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
|
|
|
|
<span class="p-float-label p-input-icon-left">
|
|
|
|
|
<i class="pi pi-search"></i>
|
2023-12-20 10:48:11 +03:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="lefticon"
|
|
|
|
|
pInputText
|
|
|
|
|
[(ngModel)]="value3"
|
|
|
|
|
/>
|
2022-07-22 13:13:50 +03:00
|
|
|
<label for="lefticon">Left Icon</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field col-12 md:col-4">
|
|
|
|
|
<span class="p-float-label p-input-icon-right">
|
2023-12-20 10:48:11 +03:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="righticon"
|
|
|
|
|
pInputText
|
|
|
|
|
[(ngModel)]="value4"
|
|
|
|
|
/>
|
2022-07-22 13:13:50 +03:00
|
|
|
<label for="righticon">Right Icon</label>
|
|
|
|
|
<i class="pi pi-spin pi-spinner"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-calendar
|
|
|
|
|
inputId="calendar"
|
|
|
|
|
[(ngModel)]="value5"
|
|
|
|
|
></p-calendar>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="calendar">Calendar</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2022-07-22 13:13:50 +03:00
|
|
|
<p-chips inputId="chips" [(ngModel)]="value6"></p-chips>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="chips">Chips</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-inputMask
|
|
|
|
|
inputId="inputmask"
|
|
|
|
|
mask="99/99/9999"
|
|
|
|
|
[(ngModel)]="value7"
|
|
|
|
|
></p-inputMask>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="inputmask">InputMask</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-inputNumber
|
|
|
|
|
inputId="inputnumber"
|
|
|
|
|
[(ngModel)]="value8"
|
|
|
|
|
></p-inputNumber>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="inputnumber">InputNumber</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-inputGroup>
|
|
|
|
|
<p-inputGroupAddon>
|
2021-12-09 17:24:42 +03:00
|
|
|
<i class="pi pi-user"></i>
|
2023-12-20 10:48:11 +03:00
|
|
|
</p-inputGroupAddon>
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
inputId="inputgroup"
|
|
|
|
|
pInputText
|
|
|
|
|
[(ngModel)]="value9"
|
|
|
|
|
/>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="inputgroup">InputGroup</label>
|
|
|
|
|
</span>
|
2023-12-20 10:48:11 +03:00
|
|
|
</p-inputGroup>
|
2021-12-09 17:24:42 +03:00
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-dropdown
|
|
|
|
|
inputId="dropdown"
|
|
|
|
|
[autoDisplayFirst]="false"
|
|
|
|
|
[options]="cities"
|
|
|
|
|
[(ngModel)]="value10"
|
|
|
|
|
optionLabel="name"
|
|
|
|
|
></p-dropdown>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="dropdown">Dropdown</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<p-multiSelect
|
|
|
|
|
inputId="multiselect"
|
|
|
|
|
[options]="cities"
|
|
|
|
|
[(ngModel)]="value11"
|
|
|
|
|
optionLabel="name"
|
|
|
|
|
[filter]="false"
|
|
|
|
|
></p-multiSelect>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="multiselect">MultiSelect</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2021-12-14 16:31:40 +03:00
|
|
|
<div class="field col-12 md:col-4">
|
2021-12-09 17:24:42 +03:00
|
|
|
<span class="p-float-label">
|
2023-12-20 10:48:11 +03:00
|
|
|
<textarea
|
|
|
|
|
inputId="textarea"
|
|
|
|
|
rows="3"
|
|
|
|
|
cols="30"
|
|
|
|
|
[(ngModel)]="value12"
|
|
|
|
|
pInputTextarea
|
|
|
|
|
></textarea>
|
2021-12-09 17:24:42 +03:00
|
|
|
<label for="textarea">Textarea</label>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-07-22 13:13:50 +03:00
|
|
|
</div>
|