Constructor

Appmixer Constructor lays a foundation for building user interfaces with widgets.

Configuration

Set up a new appmixer instance with configuration parameters passed directly into the constructor or use the set/get methods:

const appmixer = new Appmixer({/* [name]: value */})

appmixer.set(name, value)
appmixer.get(name)

baseUrl

Type: String | Default: null

Base URL of your Appmixer engine REST API.

accessToken

Type: String | Default: null

Access token of an authorized user.

debug

Type: Boolean | Default: false

Enable debugger for development purposes.

theme

Type: Object | Default: DefaultTheme

l10n

Type: Object | Default: DefaultL10N

Define custom localization texts.

lang

Type: String | Default: en

Specify a language code for the localization of components.

api

Type: Object | Default: {}

Set custom API methods.

Instance

appmixer.ui

appmixer.ui('Widget', {/* ... */})
appmixer.ui.Widget({/* ... */})

Register and create UI Widgets.

appmixer.api

Use methods of built-in API Module.

appmixer.set

appmixer.set(key, value)

Set configuration property.

appmixer.get

appmixer.get(key, value)

Get configuration property.

appmixer.registerCustomComponentShape

appmixer.registerCustomComponentShape(name, shape)

Register a custom Designer component shape.

appmixer.registerInspectorField

appmixer.registerInspectorField(type, Field, options)

Register a custom Designer inspector field.

Last updated