createWidgetContainer

How to get createWidgetContainer

import createWidgetContainer from 'fontoxml-families/src/createWidgetContainer.js'

Type: Function

This widget is used to display multiple widgets in a horizontal or a vertical layout. Besides that, this group of widgets can be set to be visible only when the container has focus or is hovered over with the mouse. This widget can be used in any widget area.

Arguments

# Name Type Description
1. widgets Array<Widget>

An array of widgets to display.

2. options Object<String | any>
  Default value
{}
  Members

Members

Name Type Description
horizontalAlignment String

The side of the container on which to align widgets horizontally. One of "left", "center" or "right".


  Default value
"left"
showWhen String

The user interaction with the container to make it visible. Default value is "always" and the other option is "has-focus".


  Default value
"always"
stackChildren String

The side of the container on which to align widgets horizontally. One of "left", "center" or "right".


  Default value
"horizontal"
verticalAlignment String

The side of the container on which to align widgets vertically. One of "top", "center" or "bottom".


  Default value
"bottom"

Returns

Type: Widget

Was this page helpful?