Skip to content
angulux
@anguless/angulux/autofocus

autofocus

1 declarations1 demos
import
import { AutoFocusModule } from '@anguless/angulux/autofocus';

Basic

aglAutoFocus puts the cursor in a field as soon as it renders.

<input aglInputText [aglAutoFocus]="true" placeholder="Focused on load" />

API

Generated from the committed corpus, which check:corpus holds to the built library.

AutoFocus

directive[aglAutoFocus]

AutoFocus manages focus on focusable element on load.

InputTypeDefaultDescription
aglAutoFocus
property autofocus
booleannot documentedWhen present, it specifies that the component should automatically get focus on load.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.