Back to Website
Show / Hide Table of Contents

Class MetadataHandler

Handler for performing simple operations with text metadata.

Package: @aurigma/design-atoms-text

Constructors

(constructor)(tw)

Constructs a new instance of the MetadataHandler class

Declaration
constructor(tw: ITextWhizzHolder);
Parameters
Type Name Description
ITextWhizzHolder tw

Methods

createMetadata(properties)

Declaration
createMetadata(properties: IMetadataProperty[]): IMetadata;
Parameters
Type Name Description
IMetadataProperty[] properties
Returns
Type Description
IMetadata

deleteMetadata(index)

Declaration
deleteMetadata(index: number): void;
Parameters
Type Name Description
number index
Returns
Type Description
void

getMetadata(index)

Declaration
getMetadata(index: number): IMetadata | null;
Parameters
Type Name Description
number index
Returns
Type Description
IMetadata | null

isMetadataExists(index)

Declaration
isMetadataExists(index: number): boolean;
Parameters
Type Name Description
number index
Returns
Type Description
boolean

setMetadata(index, metadata)

Declaration
setMetadata(index: number, metadata: IMetadata): void;
Parameters
Type Name Description
number index
IMetadata metadata
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback