setAttr
Sets an attribute, or removes it when the value is null.
Import:
import 'obsidian-test-mocks/setup';Signature:
function setAttr(this: Element, qualifiedName: string, value: string | number | boolean | null): voidParameters:
| Parameter | Type | Description |
|---|---|---|
this |
Element | |
qualifiedName |
string | The attribute name. |
value |
string | number | boolean | null | The value to set, converted to a string; null removes the attribute. |
Returns: void