Accordion
Form Layout
USAGE: ALWAYS use the following tags / classes:
formwrapper with classleaf-form- inside it, a
divtag of classleaf-form-group: this part allowslabels to be aligned -
- inside it, the
-
a
divtag of classinput-group: only if you have icons,invalid-feedbackelements, etc. (seeinputs.xmlfile for details and usage) -
the needed
inputtag
label+ either: -
a
See each form field implementation in folder common/form_fields
Switches
Checkbox
Radio
Input Text
Input Text with Leading Icon
Input Number
Input Search
Text areas
Dropdown
USAGE: dropdowns need to be wrapped by 2 divs : #1 with class leaf-form-group, and #2 with class dropdown (to make styles on invalid-feedback element available)
Dropdown with Icon
"Not added/found yet" Compo
NB: in grey = background (to see the "Not added yet" component's size)
USAGE: when a list should be displayed in the Datatable but is EMPTY, replace by this Empty List component.
No products found yet.
USAGE: when a list should be displayed in the Datatable but is EMPTY, replace by this Empty List component.
No components added yet.
You can only add elements to the bill of materials that are already defined as a product. When you decompose the product, try to go only one level deep in the decomposition.Datatable
USAGE: add class leaf-datatable to the table element
Datatable with TEXT Rows only
|
Text-only Datatable
|
|---|
| Label | Label | Label | Label | Label | |
|---|---|---|---|---|---|
| Label | Label | Label | Label | Label | |
| Label | Label | Label | Label | Label | |
| Label | Label | Label | Label | Label |
Datatable with Mixed Row Types
|
Mixed Types Datatable
|
|---|
| Label | Regular |
Regular Sortable
|
Double Regular
Double Regular
|
Double Regular Sortable
Double Regular
|
||
|---|---|---|---|---|---|---|
|
Text Label | Numeric Label |
Text 2-LINES
2-lines
|
|
|
|
|
Text Label | Numeric Label |
Text 2-LINES
2-lines
|
|
|
|
|
Text Label | Numeric Label |
Text 2-LINES
2-lines
|
|
|
Page layout
NOTE: ALL pages should be wrapped in an leaf-page div class
Card
USAGE: add class leaf-card to Bootstrap's card class
USAGE 2: wrap title, subtitle and icon in card-title-container class to place title icon on the left
Card title
Card subtitle
Short description about the card
Card With Image
Card title
Card subtitle
Short description about the card
Card With Numbers
Card title
Card subtitle
Popups
USAGE:- the Pop-up message must be an
h5element (inside themodal-bodyclass) - add class
leaf-popupto Bootstrap'smodalclass
Tabs
Horizontal NavTabs
USAGE: add class leaf-horizontal-tabs to Bootstrap's nav nav-tabs app-navtabs class
Vertical NavTabs
USAGE: add class leaf-vertical-tabs to Bootstrap's nav flex-column class
USAGE 2: wrap tabs and content with a div element of class vertical-nav-container to layout tab content on the right
Theme Colors
(see colors.scss for the complete palette)
(see utils.scss for color util classes)
Buttons
USAGE: add class leaf-btn to Bootstrap's btn class
Primary Btns
Contained
Outlined
Textual
USAGE: use class btn-link-primary combined with Bootstrap's btn-link class
With Icon
Outlined With Icon
Icon Textual
USAGE: use class btn-link-primary combined with Bootstrap's btn-link class
Danger Btns
Contained
Outlined
Textual
USAGE: use class btn-link-danger combined with Bootstrap's btn-link class
With Icon
Outlined With Icon
Icon Textual
USAGE: use class btn-link-danger combined with Bootstrap's btn-link class
Reverse
USAGE: add class disabled-reverse to Bootstrap's leaf-btn btn-primary-reverse class for the 'disable' btn
Notifications
USAGE: add class leaf-alert to Bootstrap's alert class
Typography:
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
| Lorem ipsum |
|---|