Skip to content

setAttrs

Sets several attributes at once, as setAttr does for each entry.

Import:

import 'obsidian-test-mocks/setup';

Signature:

function setAttrs(this: Element, $object: Record<string, string | number | boolean | null>): void

Parameters:

Parameter Type Description
this Element
$object Record<string, string | number | boolean | null>

Returns: void