Skip to content

Development: UI API

Sami Mokaddem edited this page Jan 12, 2021 · 18 revisions

Overview

The bootstrap-helper.js contains classes providing utility functions to create and interact with UI components such as modal or toast.

  • The UIFactory class: Exposes quick and easy to use functions for frequently used operations such as opening a toast or loading a modal from an URL
  • The Toaster class: Let you create bootstrap toasts and manipulate them
  • The ModalFactory class: Let you create bootstrap modals and manipulate them. It supports callback functions for various events and pre-build template
  • The OverlayFactory class: Let you create overlays providing a loading feedback or simply to tell users that an operation is in progress
  • The FormHelper class: Let you interact with a form validation state

UIFactory usage

Toaster usage

ModalFactory usage

OverlayFactory usage

FormHelper usage

Clone this wiki locally