react-crudeditor icon indicating copy to clipboard operation
react-crudeditor copied to clipboard

Move default spinner, notifications and confirm dialog into a separate package

Open amourzenkov-sc opened this issue 7 years ago • 1 comments

Package name: uiGlobalComponents. Exports:

  1. 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.
  2. Object uiMessageNotification with four methods: error, success, warning, info. Each method accepts the only named argument ({ message }). A timeout is hardcoded.
  3. Function uiModelDialog with the following arguments: ({ title, message, buttons: [{ label, onClick }, ...] }).

amourzenkov-sc avatar Jan 16 '18 04:01 amourzenkov-sc

Demo: https://opuscapita.github.io/react-crudeditor/branches/issue-234(slash)uiComponents/?currentComponentName=ContractEditor&maxContainerWidth=100%25&showSidebar=false

Here spinner & notifications are moved out of crud library.

estambakio-sc avatar Jan 20 '18 09:01 estambakio-sc