Only the Formatter property in jeecg3.5, which supports formatting time-format data, does not support the ability to customize the values in a formatted column, for example, to divide the value of an int or long in a column by 100 into a float or doulbe value, jeecg3.5 version does not support similar customfor Matter such a property, this article adds this function to jeecg3.5, the main modified code is as follows:
Org.jeecgframework.tag.core.easyui.DataGridColumnTag
51 Row Private String customformatter;//190-192 line public void Setcustomformatter (String customformatter) { This.customformatter = Customformatter;} 58 Row Parent.setcolumn (Title,field,width,rowspan,colspan,align,sortable,checkbox,formatter,hidden,replace, Treefield,image,imagesize,query,url,funname,arg,querymode, Dictionary,frozencolumn,extend,style,downloadname, Autocomplete,extendparams, Customformatter);
Org.jeecgframework.tag.core.easyui.DataGridTag
257 rows String style,string downloadname,boolean isauto,string extendparams, String customformater) {// 285 rows Datagridcolumn.setcustomformater (customformater);//1082-1087 rows//Custom formatted data function if (Column.getcustomformater ()! = NULL) {Sb.append (", Formatter:function (Value,rec,index) {"); Sb.append ("return"). Append (Column.getcustomformater () ). Append ("(Value, rec, index);"); Sb.append ("}");}
Org.jeecgframework.tag.vo.easyui.DataGridColumn
39 Rows Private String customformater;//custom formatted data function//253-259 Line public string Getcustomformater () {return customformater;} public void Setcustomformater (String customformater) {this.customformater = Customformater;}
Web-inf/tld/easyui.tld
<!--334-338 Row--><attribute><name>customformatter</name><rtexprvalue>true</ Rtexprvalue><description> Custom Format sub-data functions </description></attribute>
The ability to increase the number of values in a custom formatted column for a dgcol tag in jeecg3.5