Search code examples
htmltwitter-bootstrapbootstrap-table

Bootstrap Table whenzhixin width


Does anyone know how to set width for a table column using that library, I tried using the getting started info, by javascript:

columns : [{width : "200px"}, {width : "100px"}]

and also tried by html

<th data-width="200px"></th>

And it's not working.

The link of the library is: library link

Or does anyone have another library to do similar things? Thanks.


Solution

  • I got it to work... http://www.codeply.com/go/AWf7gctoYv

            {
                field: 'name',
                title: 'Item Name',
                width: '500px'
            }