Documentation(EJ2-1015310): Add content for integrate spreadsheet into existing layouts in react spreadsheet ug documentation.#2459
Conversation
…uts in react spreadsheet ug documentation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
…uts in react spreadsheet ug documentation
… layouts in react spreadsheet ug documentation
|
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
… layouts in react spreadsheet ug documentation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
|
CI Status: ABORTED ❌ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
| }; | ||
| const onDialogOpen = useCallback(() => { | ||
| setTimeout(() => { | ||
| window.dispatchEvent(new Event('resize')); |
There was a problem hiding this comment.
Utilize the resize method of our Spreadsheet.
| const spreadsheetRef = useRef(null); | ||
| const onExpanded = useCallback((args) => { | ||
| setTimeout(() => { | ||
| window.dispatchEvent(new Event('resize')); |
There was a problem hiding this comment.
Utilize the resize method of our Spreadsheet. And remove the refresh call after that.
| observer.observe(document.querySelector('#spreadsheet')!); | ||
| ``` | ||
|
|
||
| Lazy-render inside tabs/dialogs/accordions: only mount the Spreadsheet when the pane is visible. If you must mount while hidden, call a refresh after showing (for example, call `window.dispatchEvent(new Event('resize'))` or the component's refresh method) so the Spreadsheet recomputes layout. |
There was a problem hiding this comment.
Update the above topic content based on our Spreadsheet resize method.
UG documentation 1015310: Documentation Improvement - add User Interface Customization details in react spreadsheet ug documentation.