-
Notifications
You must be signed in to change notification settings - Fork 31
Added the ability to add a custom loading indicator #102
Added the ability to add a custom loading indicator #102
Conversation
|
Thank you, that was required! |
approval/review from who ? |
|
Thank you for the feature, it is really required. |
To fix the file changes i created: #108 |
|
@doonfrs I can't fix this anymore. You can change this toggle so you dont see any white space changes. This can help for you This happens if someone saves a file on a machine that has it's end of line seperator set to eather LF or CRLF If someone saves a file with CRLF and i save the file again with possibly LF all those line endings are changes, and git thinks all the files are changed. with the whitespace settings you can disable the checking of those end of line seperator's and see the actual code that changed. In vscode a fixed one can be changed. I will set the fixed end of line seperator to LF in this PR => #122 Coud you re look at this PR. and possible merge it. |
|
@doonfrs Can you approve this ? |
|
@stan-at-work Hi, could you please remove the unrelated files? this will make it easier to review |
Oke, np i will do that. Could i contact you on discord? |
|
Hi @stan-at-work |
a6ffe4a to
412b997
Compare
|
I fucked up, i don't know how to to that shit in git so i will close this issue and remove this branch |
|
Close, due to inactivity, and skill issue of @stan-at-work |
|
Sorry |




Fix: #92
How to Use
setCustomLoadingIndicatorin PlutoGridThe
setCustomLoadingIndicatormethod allows you to define a custom widget to display as the loading indicator in a PlutoGrid. Below is an explanation based on the provided example.Step-by-Step Usage
1. Define a Custom Loading Indicator
Create a custom widget that represents your loading indicator. This widget will be shown when the grid is in a loading state.
In the provided code, the
CustomIndicatorwidget does the following:2. Set the Custom Loading Indicator
In the
onLoadedcallback of the PlutoGrid, use thesetCustomLoadingIndicatormethod to set your custom widget:3. Toggle the Loading Indicator
You can programmatically control the visibility of the loading indicator using
stateManager?.setShowLoading.In the provided code:
FloatingActionButtontoggles the visibility of the loading indicator.PlutoGridLoadingLevel.customis used to specify the loading level.Full Flow
CustomIndicator) appears.Key Points
setShowLoadingandsetLoadingLevelto toggle and scope the loading states.