Bootstrap

By default, xlwings Server uses Bootstrap 5 as its UI (user interface) toolkit. Bootstrap is responsible for making fonts, buttons, etc. look beautiful across different browsers and operating systems. It also offers a range of useful components, such as navbars, dropdowns and many more.

It is responsive, which means that it can adopt to different screen sizes by rearranging components or by changing the size of pictures. This is useful as the task pane can be extended to cover half of Excel’s grid.

Most of the time, Bootstrap works by simply adding class names to your HTML tags, without having to write any CSS or JavaScript.

First Steps

To create your user interface, you can often get pretty far by going to the Bootstrap documentation and copy/pasting from their samples.

For example, if you want to add a dropdown button, you can copy code snippets from the Dropdowns page in the docs.

The next step would be to turn the copied snippet into a Jinja template. Under app/templates/examples/pictures/taskpane_pictures.html, you can see an example that does just that.

Advanced Bootstrap

To get a deeper understanding of Bootstrap, have a look at the following topics:

Alternatives

For more options, see Awesome CSS Frameworks.

References