LogoLogo
5.1
  • Docs
  • Connector Configuration
  • Knowledge Base
  • Changelog
5.1
  • Introduction
  • Migration from 5.0
  • Overview
    • Introduction
    • Component
    • Flow
    • End User Guide
  • Component Definition
    • Basic Structure
    • Manifest
      • name
      • label
      • icon
      • marker
      • author
      • description
      • auth
      • authConfig
      • quota
      • properties
      • inPorts
      • outPorts
      • firePatterns
      • tick
      • private
      • webhook
      • state
      • localization
    • Behaviour
    • Dependencies
    • Authentication
    • Quotas & Limits
    • Configuration
    • Example Component
  • Customizing UI
    • Custom Inspector Fields
    • Custom Theme
    • Custom Strings
    • Custom API
    • Custom Component Strings
    • Custom Component Shapes
    • Custom Auth Popups
  • Appmixer hosted
    • Getting started
    • Creating Custom Components
    • Using Appmixer SDK
    • Using Appmixer API
    • Using Oauth applications
  • Appmixer Self-Managed
    • Installation
    • Getting Started
    • Custom Component: HelloAppmixer
    • Using Appmixer SDK
    • Using Appmixer API
    • Using OAuth applications
    • Installation GCP
    • System Webhooks
    • Configuration
    • Appmixer Architecture
    • Appmixer Deployment Models
    • System Plugins
  • API
    • ACL
    • Accounts
    • Apps
    • Authentication
    • Charts
    • Config
    • Data Stores
    • Files
    • Flows
    • Insights
    • Modifiers
    • People Task
    • Public Files
    • Service Configuration
    • Unprocessed Messages
    • User
    • Variables
  • Appmixer SDK
    • Introduction
    • Installation
    • Quick Start
    • Constructor
    • API Module
    • UI & Widgets
      • Flow Manager
      • Designer
      • Insights Logs
      • Insights Chart Editor
      • Insights Dashboard
      • Accounts
      • Storage
      • People Tasks
      • Connectors
      • Integrations
      • Wizard
    • Developer mode
  • Appmixer Backoffice
    • Getting Started
    • Services
    • Quotas
    • Public Files
    • System Configuration
    • Modules
  • Tutorials
    • Managing Authentication
    • Sharing Flows
    • Flows Metadata & Filtering
    • People Tasks
    • Customizing modifiers
    • Setting ACL
    • Integration Templates
    • Installing and updating modules
    • Custom Webhook Trigger
    • Appmixer Virtual Users
    • Working with outport schemas
  • Appmixer CLI
    • Appmixer CLI
  • App Registration
    • Azure Cognitive Services
    • Blackboard
    • DeepAI
    • Google
    • Highrise
    • Hubspot
    • Microsoft
    • Salesforce
    • Schoology
    • Screenshot API
    • Slack
    • Trello
    • Typeform
    • Utilities
      • Email
      • Language
      • Tasks
      • Test
      • Weather
    • Zoho
  • Connectors
    • Connector Request
Powered by GitBook
On this page
  • Configuration
  • Instance

Was this helpful?

Export as PDF
  1. Appmixer SDK

UI & Widgets

Appmixer UI is a tool for building user interfaces with component-based widgets.

Configuration

Widgets are included in appmixer.ui instances made with Appmixer constructor:

const appmixer = new Appmixer(/* ... */)
const widget = appmixer.ui.FlowManager(config)

config.el

Type: String|Element | Default: null

HTML DOM element to serve as a container of the widget.

config.theme

Type: Object | Default: DefaultTheme

Custom theme definition.

config.l10n

Type: Object | Default: DefaultL10N

Custom localization texts.

config.lang

Type: String | Default: en

Language code for localization of components.

config.api

Type: Object | Default: DefaultAPI

Custom API methods.

Instance

widget.open

widget.open()

Mount the widget instance and render it inside the el container.

widget.close

widget.close()

Unmount the widget instance and hide the el container.

widget.reload

widget.reload()

Reload the entire widget.

widget.reset

widget.reset()

Reset the state of the widget to defaults.

widget.state

Use state for properties that may change at any time when the widget is active.

widget.state(path, value) // setter
widget.state(path) // getter
Example
{
  "foo": false,
  "bar": { "counter": 1 }
}
// set properties by key or path
widget.state('foo', true)
widget.state('bar', { counter: 2 })
widget.state('bar/counter', 3)

// get properties by key or path
widget.state('foo') // true
widget.state('bar') // { counter: 3 }
widget.state('bar/counter') // 3

// get the entire state
widget.state() // { foo: true, bar: { counter: 3 } }

// reset the state to defaults
widget.reset() // { foo: false, bar: { counter: 1 } }

widget.set

widget.set(key, value)

Set config property.

widget.get

widget.get(key, value)

Get config property.

widget.on

widget.on(name, handler)

Add a new event listener and disable the default handler of the event.

widget.off

widget.off(name)

Remove an event listener and enable the default handler of the event.

PreviousAPI ModuleNextFlow Manager

Last updated 1 year ago

Was this helpful?