Mods

traits.Mods

Hierarchy

Implements

Implemented by

constructor

new Mods(): Mods

Returns

Mods

mods

Abstract mods: IDictionary

Implementation of

IMods.mods

Defined in

src/core/traits/mods.ts#21

afterSetMod

afterSetMod(name, value): void

Parameters

Name Type
name string
value ModType

Returns

void

Implementation of

IMods.afterSetMod

Defined in

src/core/traits/mods.ts#23


setMod

setMod<T>(this, name, value, container?): T

Set/remove BEM class modification

Type parameters

Name Type
T extends IComponent<IViewBased<IViewOptions>> & IContainer & IMods

Parameters

Name Type Description
this T -
name string -
value ModType if null, mod will be removed
container? HTMLElement -

Returns

T

Implementation of

IMods.setMod

Defined in

src/core/traits/mods.ts#30


getMod

getMod(this, name): ModType

Get BEM class modification value

Parameters

Name Type
this IMods
name string

Returns

ModType

Implementation of

IMods.getMod

Defined in

jodit/src/core/traits/mods.ts:64