NewRevisionDlg Constructor

Syntax

PP.TS.Ui.NewRevisionDlg (settings);

Parameters

settings. JSON object that contains values of component properties.

Description

The NewRevisionDlg constructor creates an instance of the NewRevisionDlg class.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

var openDialogButt = new PP.Ui.Button({
	ParentNode: document.body, //DOM parent node
	Content: "Open Dialog", //Text      
	Click: PP.Delegate(onClickOpenDialog)
});
var newRevisionDlg;
function onClickOpenDialog() {
	// Create an instance of label add dialog class
	newRevisionDlg = new PP.TS.Ui.NewRevisionDlg({
		ResourceKey: "NewRevisionDlg", //resource key
		OkButtonClicked: PP.Delegate(onNewRevisionDialogOkButtonClick, this)
	});
	// Display the dialog
	newRevisionDlg.show();
	}
function onNewRevisionDialogOkButtonClick() {
	//Output name and comment of label
	alert('name: ' + newRevisionDlg.getName() + '\n' + "description: " + newRevisionDlg.getDescription());
}

After executing the example the WorkbookBox component and a button named Open Dialog are placed in the HTML page. Clicking this button opens the Add Label dialog box that looks as follows:

See also:

NewRevisionDlg