mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-7973] [ACC] header layout (#9782)
This commit is contained in:
committed by
VitoAlbano
parent
671c750af0
commit
7aae8bcf87
@@ -27,7 +27,7 @@ Displays a input text that supports autocompletion
|
||||
### Properties
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| ---- | ---- | ------------- | ----------- |
|
||||
|--------------------| ---- | ------------- |--------------------------------------------------------------------------------------------|
|
||||
| autocomplete | `boolean` | false | Toggles auto-completion of the search input field. |
|
||||
| collapseOnBlur | `boolean` | true | Toggles whether to collapse the search on blur. |
|
||||
| collapseOnSubmit | `boolean` | true | Collapse search bar on submit. |
|
||||
@@ -39,6 +39,7 @@ Displays a input text that supports autocompletion
|
||||
| inputType | `string` | "text" | Type of the input field to render, e.g. "search" or "text" (default). |
|
||||
| liveSearchEnabled | `boolean` | true | Toggles "find-as-you-type" suggestions for possible matches. |
|
||||
| placeholder | `string` | "" | Placeholder text to show in the input field |
|
||||
| label | `string` | "" | Label text to show over the input field |
|
||||
| searchAutocomplete | `any` | false | Trigger autocomplete results on input change. |
|
||||
| searchTerm | `string` | "" | Search term preselected |
|
||||
| showClearButton | `boolean` | false | Toggles whether to show a clear button that closes the search |
|
||||
|
@@ -11,6 +11,7 @@
|
||||
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
|
||||
</button>
|
||||
<mat-form-field class="adf-input-form-field-divider" [hintLabel]="hintLabel">
|
||||
<mat-label *ngIf='label'>{{label}}</mat-label>
|
||||
<input matInput
|
||||
#searchInput
|
||||
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
|
||||
|
@@ -99,6 +99,11 @@ export class SearchTextInputComponent implements OnInit, OnDestroy {
|
||||
@Input()
|
||||
placeholder: string = '';
|
||||
|
||||
|
||||
/** Label text to show over the input field */
|
||||
@Input()
|
||||
label: string = '';
|
||||
|
||||
/** Hint label */
|
||||
@Input()
|
||||
hintLabel = '';
|
||||
|
@@ -1,6 +1,7 @@
|
||||
$material-icons: '.material-icons';
|
||||
$mat-icon: '.mat-icon';
|
||||
$mat-icon-button: '.mat-mdc-icon-button';
|
||||
$mat-icon-button-hover: '.mdc-icon-button__ripple';
|
||||
$mat-accent: '.mat-accent';
|
||||
$mat-focused: '.mat-focused';
|
||||
$mat-line: '.mat-line';
|
||||
|
Reference in New Issue
Block a user