onDrawingNew
Definition
onDrawingNew is a host callback invoked by DimensionIQWidget when
a new drawing revision has been added in the widget component and the host application must handle it's persistent storage and its related layouts.
Once processing is complete, please refer to the
onResponse
contract in the Widget Callback Introduction.
This callback ensures the widget and the host application remain synchronized regarding the drawing's creation state.
Function Signature
Function Signature
onDrawingNew: (
drawing: DIQ_DrawingRevision,
layouts: Array<DIQ_Layout>,
onResponse: (result: DIQ_Result) => void
) => void;
Callback Parameters
drawing
Type: DIQ_DrawingRevision
Description: The newly created DIQ_DrawingRevision object from the widget.
layouts
Type: Array<DIQ_Layout>
Description: An array of DIQ_Layout objects associated with the drawing revision.
onResponse
Type: (result: DIQ_Result) => void
Description: Callback function that must be called by the host to complete the operation.
Examples
onDrawingNew