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 | undefined;
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 | undefined;
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
Properties
Readonlysize
size: number
The size read-only property of the containing the size of the StylePropertyMapReadOnly object.
Methods
[iterator]
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
append
The
append()method of theStylePropertyMapwith the given property.Parameters
- property: string
- ...values: (string | CSSStyleValue)[]
Returns void
clear
The
clear()method of the StylePropertyMap interface removes all declarations in theStylePropertyMap.Returns void
delete
entries
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
forEach
- forEach(
callbackfn: (
value: CSSStyleValue[],
key: string,
parent: StylePropertyMapReadOnly,
) => void,
thisArg?: any,
): voidParameters
- callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void
OptionalthisArg: any
Returns void
get
The
get()method of the object for the first value of the specified property.Parameters
- property: string
Returns CSSStyleValue | undefined
getAll
The
getAll()method of thejs-nolint getAll(property)-property- : The name of the property to retrieve all values of.Parameters
- property: string
Returns CSSStyleValue[]
has
The
has()method of the property is in theStylePropertyMapReadOnlyobject.Parameters
- property: string
Returns boolean
keys
Returns StylePropertyMapReadOnlyIterator<string>
set
The
set()method of the StylePropertyMap interface changes the CSS declaration with the given property.Parameters
- property: string
- ...values: (string | CSSStyleValue)[]
Returns void
values
Returns StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>
The
StylePropertyMapinterface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.MDN Reference