MetaAttributeBreadCrumbView.Options

Syntax

Options: PP.TS.MetaAttrBrCrOptionParser;

Description

The Options property defines settings of the initial image.

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 demoOptionsButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Change breadcrumb", //Text      
		Click: PP.Delegate(onClickDemoOptions)     
	}); 
	function onClickDemoOptions()
	{						
		//Get a component used to display and control workbook attributes
		var breadcrumb = workbookBox.getDataView().getBreadcrumb();
		//Get initial display settings
		var opts = breadcrumb.getOptions();
		var items = opts.getItems();
		items.pop();
		opts.setItems(items);
		breadcrumb.refresh();
	}

After executing the example the WorkbookBox component and the Change Breadcrumb button are placed in the HTML page. On clicking the button the user gets a component used to show and manage workbook attributes. Also settings of the initial displaying are defined and breadcrumb is updated.

See also:

MetaAttributeBreadCrumbView