Skip to content
Discussion options

You must be logged in to vote

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>
      <t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crspl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants