Home Reference Source

References

summary
public

V bse: Object

This is the main object that contains all methods

addScrollMessToResTable

summary
public

F init(displayMessage: string)

Add a message when the table in .table-responsive is scrollable.

public

F update(displayMessage: *)

fixModalShifting

summary
public

F init()

Fix bootstrap modal's shifting issue. Run bse.fixModalShifting.init();

public

F update()

resList

summary
public

F init(config: Object)

Convert a ul li menu to a select options element and display it on small device Add bse-resList attribute to ul and run bse.resList.init();

public

F update()

scrollToTop

summary
public

F init(innerElement: string)

Add scroll to top anchor on the right bottom of the whole page.

public

F update()

toggleCollapseChevron

summary
public

F init()

Automatically toggle bootstrap collapse's chevron based on show or hide collapse. Add bse-toggleCollapChevron attribute to chevron link and run bse.toggleCollapseChevron.init();

public

F update()

utilities

summary
public

F addStyles(css: string)

Add some css styles to the top most position in head tag.

public

F addToWindow(keyValue: string, element: Object): Promise<Object, MyError>

Attach object to window without overwriting anything else.

public

F getJquery(): Promise<Object, MyError>

Get jQuery from window.

public

Get scroll bar's width.

public

Check if the current page has scroll bar.

public

F prependClass(sel: Object, strClass: string)

Add class names to the left most position to avoid overwriting original class's style

utilities/checkBreakPoint

summary
public

Get window width's info in bootstrap 4's grid system standards.

public

F is(str: *): boolean

Check which grid level is window in.