toggleVisibility
Shows or hides the element through its inline visibility, so it keeps its place in the layout.
Import:
import 'obsidian-test-mocks/setup';Signature:
function toggleVisibility(this: HTMLElement, visible: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
this |
HTMLElement | |
visible |
boolean | true for visible, false for hidden. |
Returns: void