}
]
},
- {
- "*prop": "colModel[]",
- "dataIndex": "item_image_filename",
- "header": "Image ( Click to download )",
- "width": 150,
- "xtype": "ColumnModel",
- "|renderer": "function(v,x,r)\r\n{\n if(!v){\n return '';\n }\n if(r.data.item_image_from_hk){\n var url = baseURL.split('/');\n url.pop();\n url = url.join('/');\n return '<img src=\"' + url + '/hk.php/Images/Thumb/150x150/' + r.data.item_image_id + '/' + v + '\" width=\"150\" height=\"' + Math.ceil(150 / r.data.item_image_size) + '\" />'; \n }\r\n return '<img src=\"' + baseURL + '/Images/Thumb/150x150/' + r.data.item_image_id + '/' + v + '\" width=\"150\" height=\"' + Math.ceil(150 / r.data.item_image_size) + '\" />';\r\n}",
- "|xns": "Roo.grid"
- },
{
"*prop": "colModel[]",
"dataIndex": "item_char_brand",
]
},
colModel : [
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'item_image_filename',
- header : 'Image ( Click to download )',
- width : 150,
- renderer : function(v,x,r)\r
- {
- if(!v){
- return '';
- }
- if(r.data.item_image_from_hk){
- var url = baseURL.split('/');
- url.pop();
- url = url.join('/');
- return '<img src="' + url + '/hk.php/Images/Thumb/150x150/' + r.data.item_image_id + '/' + v + '" width="150" height="' + Math.ceil(150 / r.data.item_image_size) + '" />';
- }\r
- return '<img src="' + baseURL + '/Images/Thumb/150x150/' + r.data.item_image_id + '/' + v + '" width="150" height="' + Math.ceil(150 / r.data.item_image_size) + '" />';\r
- }
- },
{
xtype: 'ColumnModel',
xns: Roo.grid,