ThemeBuilder

Builder de thème pour définir et lire le thème courant

Méthodes

constructor

Constructeur

Définition:

constructor(_doc: Y.Doc, dsl: Y.Map<any>)

Paramètres:

ParamètreTypeDescription
_docY.Doc-
dslY.Map-

observe

Observer les changements de thème et renvoyer une fonction de désabonnement

Définition:

observe(callback: ObserveCallback): () => void

Retour: () => void

Paramètres:

ParamètreTypeDescription
callbackObserveCallback- Fonction de rappel

setTheme

Définir le thème

Définition:

setTheme(theme: string)

Paramètres:

ParamètreTypeDescription
themestring- Nom du thème

getTheme

Obtenir le thème courant

Définition:

getTheme(): string

Retour: string

toJSON

Exporter en JSON

Définition:

toJSON(): string

Retour: string