Bootstrap 5

From NSB App Studio
Revision as of 21:42, 31 October 2022 by Ghenne (talk | contribs)
Jump to navigation Jump to search

Support for Bootstrap 4 was added in AppStudio 7. Since then, Bootstrap 5 has been released.

There are many changes in Bootstrap 5: more than we could build a migration for. Bootstrap 5 is a separate framework. We will continue to support Bootstrap 3 and 4 for existing projects, but recommend using Bootstrap 5 for new projects.

We were able to make most of the changes in our code, so most of the controls work pretty much the same way. The code emitted by AppStudio is quite different.

Since Bootstrap 3, 4 and 5 share many internal variable names, controls from the two frameworks cannot be included in the same project.

Here's are a couple of detailed summaries of the changes from Bootstrap 4 to Bootstrap 5:

Summary of notable changes

Alert:

  • Can act as a Container.

Button:

  • Updated buttons to ensure increased contrast on hover and active states.
  • Disabled buttons now have pointer-events: none;.

Card

  • Simplifications to HTML

DataTable

  • Libraries updated to support BS5

Fliptoggle

  • replaced by Switch

Icons

  • Based on Bootstrap's own icons. Small and fast; svg based.
  • Names of some icons have changed.
  • User icons can be svg or css

Input and Input-item

  • Completely new Input control
  • Allows mix of inputText, literals, textareas, checkboxes and radio on a single line.

Jumbotron

  • Dropped. It can be built up from other controls.

Listgroup

  • Add list-group-numbered

Media:

  • imageHorizontal and imageAlignment properties dropped.

Modal:

  • Footer text is always aligned right
  • long text scrolls automatically
  • Children are in footer.
  • vertical position can be selected.

OffCanvas

  • New control. Puts up a panel over part of your screen.

Toasts

  • Changed default toast duration to 5 seconds.


Themes

  • Dropped: readable and paper
  • Added: lux, materia, minty, pulse and solar