Results 1 to 2 of 2

Thread: How can I align the column header cell to center without...

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default How can I align the column header cell to center without...

    How can I align the column header cell to center without aligning the data cells to center too. That is to say:


    I want one aligning in the header and different one in the data cells of the same column

    Im using a grid

    Thanks

  2. #2
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Vote Rating
    59
      0  

    Default

    html tags are accepted in the text config (http://docs.sencha.com/ext-js/4-1/#!...olumn-cfg-text) of a column so you could do something like this:

    Code:
    columns: [{
        text: '<center>Centered Column Header</center>'
        ...
    }]

Posting Permissions

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