createAttributeLabelWidget

How to get createAttributeLabelWidget

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

Type: Function

Deprecated

This API has been deprecated.

This widget is deprecated, use the createLabelQueryWidget.

This widget is used to display the value of an attribute. The defaultLabel option should be set to provide a default value when the attribute can not be found.

Optionally, you can provide a prefix and suffix.

Arguments

# Name Type Description
1. attributeName String

The name of the attribute to display the value of.

2. [options] Object
  Members

Members

Name Type Description
[defaultLabel] String

A default label to show when the attribute can not be found.

prefix String

When present, the prefix will be added at the beginning of the label.


  Default value
""
suffix String

When present, the suffix will be added at the end of the label.


  Default value
""

Returns

Type: Widget

Was this page helpful?