@anguless/angulux/iconfield
IconField
import
import { IconFieldModule } from '@anguless/angulux/iconfield';Basic
IconField wraps an input and an InputIcon so the two line up as one control.
<agl-iconfield> <agl-inputicon class="pi pi-search" /> <input type="text" aglInputText placeholder="Search" /></agl-iconfield>Position
The icon sits wherever it is written, before or after the input.
<agl-iconfield> <agl-inputicon class="pi pi-user" /> <input type="text" aglInputText placeholder="Icon first" /></agl-iconfield><agl-iconfield> <input type="text" aglInputText placeholder="Icon last" /> <agl-inputicon class="pi pi-spin pi-spinner" /></agl-iconfield>API
Generated from the committed corpus, which check:corpus holds to the built library.
IconField
componentagl-iconfield, agl-iconField, agl-icon-fieldIconField wraps an input and an icon.
| Input | Type | Default | Description |
|---|---|---|---|
| host | any | not documented | |
| icon | 'right' | 'left' | not documented | Position of the icon. |
| style deprecated — since v20.0.0, use `class` instead. | string | not documented | Style class of the component. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | undefined | undefined | Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |