Move default spinner, notifications and confirm dialog into a separate package
amourzenkov-sc opened this issue · comments
Package name: uiGlobalComponents. Exports:
- Object uiSpinner with two methods: show, hide. Each method accepts no arguments and increments/decrements the Component's internal state. The Component is created dynamically, not beforehand.
- Object uiMessageNotification with four methods: error, success, warning, info. Each method accepts the only named argument
({ message })
. A timeout is hardcoded. - Function uiModelDialog with the following arguments:
({ title, message, buttons: [{ label, onClick }, ...] })
.
Here spinner & notifications are moved out of crud library.