Universal DevTools Kit SDK / @u-devtools/kit / vanilla / bindVisible
Function: bindVisible()
bindVisible(
element,state):CleanupFn
Defined in: vanilla.ts:82
Controls element visibility (display: none). visible = true -> removes display: none visible = false -> sets display: none
Parameters
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | HTMLElement |
state | SyncedState<any> | SyncedState instance |