* Sets the toolbar to its default initial state. * * Sets the active index to the first focusable widget.
()
| 230 | * Sets the active index to the first focusable widget. |
| 231 | */ |
| 232 | setDefaultState() { |
| 233 | const firstItem = this.navigationBehavior.peekFirst({ |
| 234 | items: this.inputs.items(), |
| 235 | }); |
| 236 | |
| 237 | if (firstItem) { |
| 238 | this.inputs.activeItem.set(firstItem); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | /** Sets the default active state of the toolbar before receiving interaction for the first time. */ |
| 243 | setDefaultStateEffect(): void { |