What were the blocks for adding refresh button?

I know it is wrong but I’m unable to get the perfect execution. I’m trying my level best

When you open the app, does the refresh button appears?
Instead of adding it at when screen initialize, why not adding it at when menu initialize as suggested in Kodular Documentation.
Also, where is the event handler for that button?

1 Like

Even, I tried in that way too, didn’t it wasn’t working.
If you don’t mind, Will you do that and send a screen shot.

I can do it but you will have to wait until later because I’m not home and don’t have an access to a computer now.

Use the Menu Initialize event instead.

Show your blocks on the Screen.Initialize


When you start the app, data is loaded? From where?

Where do you get the data from? Where do you display it?

I have tried using menu initialize but it isn’t working. Can you make it and send screen shot of complete blocks for refresh button?

I think you don’t really understand the concept of a refresh button.

When you click that button you have to do something again that you already did, like loading data, showing something.

What you’re doing there is just showing a button.

If that’s all you’ve done with your app, keep doing it and then you’ll be doing the refresh button

Yeah! What you said is completely correct and I accept it. But, I was not able to go further. Literally, I’m in a confusion btw those blocks

Then you have to be clear about what you are doing in your application, what data you are showing and where. And then make that happen inside the button:


In the red arrow of the image you should put what you want that button to show or do

Well actually I’m using a webviewer. In the webview I’m gonna use refresh option as swipe refresh in kodular don’t work proper in webview

So if you do this, it will reload the page in the web viewer:

When you click the button, the web viewer reloads

1 Like

Yeah thank you very much for the information. But, I am using another title bar icon also that is back button. Back button is working perfectly.

The truth is that lately people don’t know how to explain what they need.
It’s really hard to help someone who doesn’t explain himself well… I’m sorry.

The back button is another button that you can assign another function… They’re two different things…

Look. They’re two different buttons that you can assign different functions to:


And maybe you can confuse it with this one:

component_event (1)

Man, it’s really hard to help like this…

Read this before you ask questions

1 Like

No worries. Thank you for your patience. At last I achieved what I want. I didn’t followed what you said but i added a floating button and added a block to refresh when floating button is clicked. It’s working

You ask the questions you need.
If you ask a question well, people will be able to help you better

1 Like

Thanks a lot mate, i was looking for it since so long but nobody was able to tell. Its strange that this option was not visible to me