MetaAttributeTree Constructor

Syntax

MetaAttributeTree(settings);

Parameters

settings. JSON object that contains values of component properties.

Description

The MetaAttributeTree constructor creates an instance of the MetaAttributeTree class.

Example

To execute the example, specify links to the following JS and CSS files in the HEAD tag of HTML page:

The repository must contain a time series database with the 112 key.

Place the following code in the BODY tag:

<body>
	<div id='example'></div>
</body>

Add a script for creating the MetaAttributeTree component in the SCRIPT tag:

<script type="text/javascript">
    //Connect resources
    PP.resourceManager.setRootResourcesFolder("../resources/");
    PP.setCurrentCulture(PP.Cultures.ru);
    //Connect repository
    var mb = new PP.Mb.Metabase({
        PPServiceUrl: "PPService.axd?action=proxy",
        Id: "Warehouse",
        UserCreds:
        {
            UserName: "user",
            Password: "password"
        }
    });
    //Open repository
    mb.open();
    //Create a service for working with time series tree
    var hieSrv = new PP.TS.HieService({ Metabase: mb });
    //Open time series database
    var hie = hieSrv.open(null, null, 1565);
    //Create time series tree
    var maTree = new PP.TS.Ui.MetaAttributeTree({
        Source: hie,
        ImagePath: "../build/img/",
        ParentNode: "example",
        Height: 400,
        Width: 500,
    });
    //Reload tree
    maTree.reload();
</script>

After executing the example the HTML page contains the MetaAttributeTree component that is a time series tree:

See also:

MetaAttributeTree