Search
CommandType Class
See Also
 






Provides functionality for command columns.

Namespace: MindFusion.DataViews
File: CommandType.js

 Syntax

JavaScript  Copy Code

// class
CommandType.prototype = {}

 Example

The following code creates a GridColumn with dataType "CommandType" and sets the metaData property of the column to an array of custom commands:

JavaScript  Copy Code

var dv = MindFusion.DataViews;

// create the grid columns
var columns = [];

var column0 = new dv.GridColumn();
column0.dataType = dv.CommandType;
column0.metaData.set("commands", [ConfirmDeleteCommand, EditCommand, SaveCommand, CancelCommand]);
columns.push(column0);

 Inheritance Hierarchy

MindFusion.DataViews.CommandType

 See Also