TSService.editAllSeries

Syntax

editAllSeries (wbk, series, callback);

Parameters

wbk. Sets workbook value.

series. Sets series.

callback. Sets handler for operation execution end.

Description

The editAllSeries method sets tooltip for workbook cells.

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 editAllSeriesButt = new PP.Ui.Button({
	ParentNode: document.body, //DOM parent node
	Content: "Set Tooltip", //Text
	Click: PP.Delegate(onClickEditAllSeries)
});
function onClickEditAllSeries()
	{
		//Create an object that contains information about tooltip type:
		//7 - Value;
		//5 - Date;
		//8 - Note.
		var series ={ its: { it: [] }, commentAttribute : {k : 7} };//Tooltip type - value
		//Set a tooltip for series
		tsService.editAllSeries(wbk, series, onRowsEdited);
		function onRowsEdited(){
			//Refresh the workbookBox component
			workbookBox.refreshAll();
		}
	}

After executing the example a button named Set Tooltip is placed in the HTML page. After clicking this button a tooltip that contains cell value appears on hovering the cursor over the table cell containing a red label.

See also:

TSService