Skip to content

toggle

Shows or hides the element through its inline display.

Import:

import 'obsidian-test-mocks/setup';

Signature:

function toggle(this: HTMLElement, showValue: boolean): void

Parameters:

Parameter Type Description
this HTMLElement
showValue boolean true to show the element, false to hide it.

Returns: void