Interface StylePropertyMap
interface StylePropertyMap {
size: number;
[iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>;
append(property: string, ...values: (string | CSSStyleValue)[]): void;
clear(): void;
delete(property: string): void;
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>;
forEach(callbackfn: ((value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void), thisArg?: any): void;
get(property: string): CSSStyleValue;
getAll(property: string): CSSStyleValue[];
has(property: string): boolean;
keys(): StylePropertyMapReadOnlyIterator<string>;
set(property: string, ...values: (string | CSSStyleValue)[]): void;
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>;
}
size: number;
[iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>;
append(property: string, ...values: (string | CSSStyleValue)[]): void;
clear(): void;
delete(property: string): void;
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>;
forEach(callbackfn: ((value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void), thisArg?: any): void;
get(property: string): CSSStyleValue;
getAll(property: string): CSSStyleValue[];
has(property: string): boolean;
keys(): StylePropertyMapReadOnlyIterator<string>;
set(property: string, ...values: (string | CSSStyleValue)[]): void;
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>;
}
Hierarchy
- StylePropertyMapReadOnly
- StylePropertyMap (view full)
Methods
[iterator]
- [iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
append
- append(property, ...values): void
Parameters
- property: string
Rest
...values: (string | CSSStyleValue)[]
Returns void
clear
delete
entries
- entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
forEach
- for
Each (callbackfn, thisArg?): void Parameters
- callbackfn: ((value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void)
- (value, key, parent): void
Parameters
- value: CSSStyleValue[]
- key: string
- parent: StylePropertyMapReadOnly
Returns void
Optional
thisArg: any
Returns void
- callbackfn: ((value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void)
get
- get(property): CSSStyleValue
Parameters
- property: string
Returns CSSStyleValue
getAll
- get
All (property): CSSStyleValue[] Parameters
- property: string
Returns CSSStyleValue[]
has
keys
- keys(): StylePropertyMapReadOnlyIterator<string>
Returns StylePropertyMapReadOnlyIterator<string>
set
- set(property, ...values): void
Parameters
- property: string
Rest
...values: (string | CSSStyleValue)[]
Returns void
values
- values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>
Returns StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>
MDN Reference