-
First of all - great piece of software. Congrats for idea and implementation. Hope it will be continually developed and enriched by more and more features. Now my question - as I see it's build on top of bootstrap on frontend part. Is there any possibility to use styles eg for tables as it's described on Bootstrap docs -> https://getbootstrap.com/docs/4.0/content/tables/ ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
PyWebIO currently does not directly support the ability to add custom css class to the output. Since PyWebIO also uses extra styles to format the table, the final style is not exactly the same as in bootstrap, even if the table css class bootstrap bs is used. Here is an example to output bootstrap table, and you can see the final style is not same as bootstrap. pywebio.output.put_html("""
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
""") |
Beta Was this translation helpful? Give feedback.
-
Thanks for reply. It's a pity a bit that PyWebIO interferes with Bootstrap styles as it limits possibilities to create nice looking forms |
Beta Was this translation helpful? Give feedback.
PyWebIO currently does not directly support the ability to add custom css class to the output.
Since PyWebIO also uses extra styles to format the table, the final style is not exactly the same as in bootstrap, even if the table css class bootstrap bs is used.
Here is an example to output bootstrap table, and you can see the final style is not same as bootstrap.