Table in GWT-Bootstrap

Trying to add a table to my GWT app with Bootstrap using UIBinder. From what I understand, there is some kind of table put in GWT-Bootstrap, but I don't know which one to use or how to use it (couldn't find any documentation either).

I want something like this, with Bootstrap styling of course:

<b:CellTable>
    <<ROW>
        <<COLUMN>>
           Text blabla
        <</COLUMN>>
        <<COLUMN>>
           Text blabla
        <</COLUMN>>
    <</ROW>>            
</b:CellTable>

      

Thank!

+3


source to share


1 answer


I think you are mixing some things.

<b:CellTable>

is basically a regular GWT CellTable

with bootstrap styles (it extends the normal one CellTable

and introduces a custom one Resource

for the styles).

Bootstrap and GWT-Bootstrap also have styles for regular HTML tables.
You can use a widget <b:Table>

or simply define <table>

and add an appropriate bootstrap class name.



So, there are three options:

  • If you want functionality CellWidgets

    (render large number of posts, fast performance) and want to have it with bootstrap style, use<b:CellTable>

  • If you only want an HTML-style bootstrap table and also want to interact with it, use a widget <b:Table>

    .
  • If you just want a bootstrap style static stylesheet then just use <table class="table table-striped">

+4


source







All Articles