template

returns HTML string for sparklines in a cell

string template(object item,string common,array data,object column,number index);

Parameters

itemobjectthe data item
commonstringthe datatable type
dataarrayan array with sparklines data
columnobjectthe column configuration
indexnumberthe item index

Returns

stringHTML string for sparklines in a cell

Example

var html = webix.Sparklines.template(item,common,data,column,index);

Related samples

See also
Back to top