Skip to content

createSpan

Import:

import 'obsidian-test-mocks/setup';

Signature:

function createSpan(this: Node, o: string | DomElementInfo | undefined, callback: ((el: HTMLSpanElement) => void) | undefined): HTMLSpanElement

Parameters:

ParameterTypeDescription
thisNode
ostring | DomElementInfo | undefined
callback((el: HTMLSpanElement) => void) | undefined

Returns: HTMLSpanElement