Back to Website
Show / Hide Table of Contents

Class ModelComponent

Package: @aurigma/design-atoms-model

Constructors

(constructor)(id, name)

Constructs a new instance of the ModelComponent class

Declaration
constructor(id?: string, name?: string);
Parameters
Type Name Description
string id
string name

Properties

_name

Declaration
protected _name: string;
Property Value
Type Description
string

_propertyChanged

Declaration
protected _propertyChanged: EventWithSenderArg<ModelComponent, string>;
Property Value
Type Description
EventWithSenderArg<ModelComponent, string>

id

Declaration
id: string;
Property Value
Type Description
string

name

Declaration
get name(): string;

set name(value: string);
Property Value
Type Description
string

tags

Declaration
get tags(): {
        [key: string]: any;
    };

set tags(value: {
        [key: string]: any;
    });
Property Value
Type Description
{ [key: string]: any; }

version

Declaration
get version(): string;
Property Value
Type Description
string

Methods

_copy(source, destination, generateNewIds, appropriateParentContainer)

Declaration
protected _copy(source: ModelComponent, destination: ModelComponent, generateNewIds?: boolean, appropriateParentContainer?: boolean): void;
Parameters
Type Name Description
ModelComponent source
ModelComponent destination
boolean generateNewIds
boolean appropriateParentContainer
Returns
Type Description
void

_generateNewId()

Declaration
protected _generateNewId(): void;
Returns
Type Description
void

addPropertyChanged(listener)

Declaration
addPropertyChanged(listener: (sender: ModelComponent, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: ModelComponent, eventArgs: string) => void listener
Returns
Type Description
void

equals(other)

Declaration
equals(other: ModelComponent): boolean;
Parameters
Type Name Description
ModelComponent other
Returns
Type Description
boolean

generateNewIds()

Declaration
generateNewIds(): void;
Returns
Type Description
void

getSimplifiedObject(omitProperties)

Declaration
getSimplifiedObject(omitProperties?: string | string[]): {};
Parameters
Type Name Description
string | string[] omitProperties
Returns
Type Description
{}

removePropertyChanged(listener)

Declaration
removePropertyChanged(listener: (sender: ModelComponent, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: ModelComponent, eventArgs: string) => void listener
Returns
Type Description
void

toString()

Declaration
toString(): string;
Returns
Type Description
string
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback