Skip to content

Universal DevTools Kit SDK


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 ​

ParameterTypeDescription
elementHTMLElementHTMLElement
stateSyncedState<any>SyncedState instance

Returns ​

CleanupFn

Released under the MIT License.