Search
ImageType Class
See Also
 






Provides functionality for grid columns that display image data.

Namespace: MindFusion.DataViews
File: ImageType.js

 Syntax

JavaScript  Copy Code

// class
ImageType.prototype = {}

 Example

The following sample creates a GridColumn of ImageType:

JavaScript  Copy Code

var columns = [];

var column = new dv.GridColumn("bonus");
column.dataType = dv.ImageType;
column.caption = "Bonus";
var imgSrcs = ["../images/client.png", "../images/data_server.png", "../images/network_server.png", "../images/web_server.png"];
var imageList;
ui.ImagePicker.loadImageList(imgSrcs).then(response =>
{
    imageList = response;
    column.metaData.set("customEditor", { "imageList": imageList, "width": common.Unit.pixel(100), "itemSize": common.Unit.pixel(50) });
});
columns.push(column);

 Inheritance Hierarchy

MindFusion.DataViews.DataType
    MindFusion.DataViews.ImageType

 See Also