DaffFocusStackService

Properties

Name Type Description
length number Return the current length of the stack.
push number Adds a HTML element to a focus stack and returns the new length of the stack. Generally, you will probably want to call this before you transition focus onto a new element. ```ts this._focusStack.push(this._doc.activeElement); ```
focus Focuses on the HTML element at the top of a stack. ```ts this._focusStack.push(this._doc.activeElement); ```
pop HTMLElement Removes the HMTL element at the top of a stack and focuses on it.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.