Manager
Extends:
The Manager provides methods to access and interact with widgets and data items. It is available globally: window.Alteryx.Gui.Manager.
Constructor Summary
Public Constructor | ||
public |
constructor(args: Object) Constructor |
Member Summary
Public Members | ||
public |
Adds a widget to the manager. |
Method Summary
Public Methods | ||
public |
bindDataItemToWidget(dataItem: DataItem, widgetId: string) Binds a data item to a widget. |
|
public |
deleteProp(widgetId: string, prop: string) Deletes a property from a widget. |
|
public |
Returns the value of a widget property. |
|
public |
removeWidget(widgetId: string, removeTag: boolean) Removes a widget from the manager. |
|
public |
Sets a property of a widget. |
|
public |
Sets multiple properties of a widget. |
|
public |
unbindDataItemFromWidget(dataItem: DataItem, widgetId: string) Unbinds a data item from a widget. |
Public Constructors
public constructor(args: Object) source
Constructor
Params:
Name | Type | Attribute | Description |
args | Object |
|
The manager's configuration object |
args.MacroMode | boolean |
|
If the value of data items will be saved in macro mode format ({'Value': result.DataItem}). Note: the property name is PascalCase not camelCase |
args.MetaInfo | Array |
|
] An array of JSON objects that describes the incoming field data. Note: the property name is PascalCase not camelCase. |
args.AllowCdata | boolean |
|
Allows values of data items to be stored in a CDATA section (i.e. <![CDATA[...]]>). Note: the property name is PascalCase not camelCase. |
Public Members
Public Methods
public bindDataItemToWidget(dataItem: DataItem, widgetId: string) source
Binds a data item to a widget.
public getProp(widgetId: string, prop: string): * source
Returns the value of a widget property.
Return:
* | The value of the prop. |