PDA

View Full Version : Format bodyfield in preview login



hieu79vn
19 Oct 2012, 12:32 AM
Hi

I have a grid with previewplugin. I would like to make the body field bold but I don't know how to do it. Could you please tell me?
Thank you


viewConfig: {
enableTextSelection: true,
plugins: [{
pluginId: 'preview',
ptype: 'preview',
bodyField: 'blog_text',
previewExpanded: true
}],
markDirty:false,
getRowClass: function(rec, idx, rowPrms, ds)
{
return rec.data.status_code == 'dft' ? 'bold_row' : ''; =>>>>>it formats only the date in grid
}
},


39482

sword-it
19 Oct 2012, 5:52 AM
getRowClass() method apply the class only rowBody not in preview body, for preview body you try to need
inspect that body with the firebug inspector and override the css of the preview body.

hieu79vn
22 Oct 2012, 1:10 AM
I will try it
Thanks