Socket
Book a DemoInstallSign in
Socket

@backbase/portal-model

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backbase/portal-model

## Warning: This library is in alpha.

latest
npmnpm
Version
1.0.0-alpha.4
Version published
Maintainers
1
Created
Source

Backbase Portal Model

Warning: This library is in alpha.

Utilities and classes for representing and parsing portal models.

Usage

.ItemModel

new .ItemModel()

Create a new ItemModel instance

ItemModel.read(filePath)

filePath Type: string

Read the model.xml at filePath and initialise the instance's model.

Returns a Promise that will resolve to a JS Object that represents the model.

ItemModel.createFeature(name)

name Type: string

Initialse the instance's model as a CXP Shared Feature with name.

Returns a Promise that will resolve to a JS Object that represents the model.

ItemModel.isEmpty

Returns true if the model hasn't been initialised.

ItemModel.getXml

Return XML string of the instance's model (which can be used in a package.zip).

ItemModel.getProperty(name)

name Type: string

Returns the value of the property matching name. getProperty: function(name) {

ItemModel.addProperty(name, value)

name Type: string

value Type: string

Adds a string type property to the model with name and value.

ItemModel.getType()

Returns one of template/container/feature/widget.

FAQs

Package last updated on 03 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts