Variable
Static Public
public bse: Object source
import bse from 'bootstrap-enhancement/src/index.js'
This is the main object that contains all methods
Properties:
Name | Type | Attribute | Description |
bse.utilities | Object | Utilityies related to bootstrap |
|
bse.utilities.prependClass | function(sel: Object, strClass: string) | Add class names to the left most position to avoid overwriting original class's style |
|
bse.utilities.getJquery | function(): Promise<Object, MyError> | Must use this way to get jQuery if we want to attach something to bootstrap's event. |
|
bse.utilities.hasScrollBar | function(): boolean | Check if the current page has scroll bar. |
|
bse.utilities.getScrollBarWidth | function(): number | Get scroll bar's width. |
|
bse.utilities.addStyles | function(css: string) | Add some css styles to the top most position in head tag. |
|
bse.utilities.checkBreakPoint | Object | ||
bse.utilities.checkBreakPoint.checkSize | function(): string | Get window width's info in bootstrap 4's grid system standards. |
|
bse.utilities.checkBreakPoint.is | function(): boolean | Check which grid level is window in. |
|
bse.utilities.addToWindow | function(keyValue: string, element: Object): Promise<Object, MyError> | Attach object to window without overwriting anything else. |
|
bse.addScrollMessToResTable | Object | Add a message when the table in .table-responsive is scrollable. |
|
bse.addScrollMessToResTable.init | function(displayMessage: string) | Init addScrollMessToResTable |
|
bse.addScrollMessToResTable.update | function(displayMessage: string) | Update addScrollMessToResTable |
|
bse.fixModalShifting | Object | Fix bootstrap modal's shifting issue. |
|
bse.fixModalShifting.init | function() | Init fixModalShifting |
|
bse.toggleCollapseChevron | Object | Automatically toggle bootstrap collapse's chevron based on show or hide collapse. |
|
bse.toggleCollapseChevron.init | function() | Init toggleCollapseChevron |
|
bse.scrollToTop | Object | Add scroll to top anchor on the right bottom of the whole page. |
|
bse.scrollToTop.init | function(innerElement: string) | Init scrollToTop |
|
bse.resList | Object | Convert a ul li menu to a select options element and display it on small device |
|
bse.resList.init | function(config: Object) | Init resList |