Results 1 to 3 of 3

Thread: Format bodyfield in preview login

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default Format bodyfield in preview login

    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

    Code:
    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
                        }                        
                    },
    Untitled4.png

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    93
      0  

    Default

    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.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default

    I will try it
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •