ProcessNoticer
Displays message notices of pending processes (e.g. while sending ajax request). Displays process pending loader.
Install
yarn add @arturdoruch/process-noticer
Usage
;; const processNoticer = ; // Example of usage.let notice = processNoticer;processNoticerdisplay; ;
Global options
Global options of process noticer HTML elements, used by every instance of the ProcessNoticer. Set by calling function setOptions().
; ;
-
elementsIdPrefix
string (default:ad-process-notice
)Prefix of "id" attribute of the list and loader elements.
-
listTag
string (default:ul
)Tag name for list element.
-
itemTag
string (default:li
)Tag name for list item element.
-
centerList
boolean (default:false
)Whether to center displayed process notice list.
Instance options
Options of process noticer HTML elements applied for specific ProcessNoticer instance.
; const processNoticer = // options;
-
listClass
string (default:null
)The class name of the noticer list element.
-
listItemClass
string (default:null
)The class name of the noticer a list item element.
-
loaderClass
string (default:null
)The class name of the noticer loader element.
-
centerList
boolean (default:false
)Whether to center displayed process notice list.