PreviewWidget Class
A widget for a preview.
Item Index
Methods
add_attribute_mapping
(
-
key
-
value
Adds an attribute definition using a component mapping
Parameters:
-
key
StringAttribute definition
-
value
StringValue
add_attribute_value
(
-
key
-
value
Adds an attribute definition and its value
Parameters:
-
key
StringAttribute definition
-
value
String, {Number}, {Object}. The value can be a string, number, object
add_widget
(
-
widget
Adds a widget into expandable widget
Parameters:
-
widget
PreviewWidgetThe widget that needs to be added
attribute_mappings
()
Get the components of this widget
Returns:
Dictionary of widget components
attribute_values
()
Get the attributes of this widget
Returns:
Object corresponding to attributes of this widget
data
()
Get a JSON representation of this widget
Returns:
String representation of widget
id
()
String
Get the identifier of this widget
Returns:
String:
Id
widget_type
()
String
Get type name of this widget
Returns:
String:
Widget type
widgets
()
Get widgets of 'expandable' widget
Returns:
List of PreviewWidget