Home > widget-integration > ISWState
ISWState interface
Internal state management for the ISW controller.
**Legacy**: State was managed via global variables (keyboardNavIndex, currentSearch) **New**: Encapsulated in ISWState interface with proper typing
Signature:
export interface ISWState
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | null |
ID of the currently active search input element | ||
|
string |
Current search query string | ||
|
boolean |
Whether a search request is in progress | ||
|
boolean |
Whether the suggestion dropdown/overlay is currently open | ||
|
number |
Current keyboard navigation index (-1 means input focused) |