chartjs-colorful

chartjs-colorful - v1.0.0 / registries / Registry

Class: Registry<T>

registries.Registry

Type parameters

Name
T

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new Registry<T>(value)

Type parameters

Name
T

Parameters

Name Type
value T

Accessors

names

get names(): string[]

Returns

string[]

Methods

add

add(name, value): void

Parameters

Name Type
name string
value T

Returns

void


addAll

addAll(items): void

Parameters

Name Type
items Record<string, T>

Returns

void


clear

clear(): void

Returns

void


get

get(name?): T

Parameters

Name Type
name? string

Returns

T