// Placed right before the last `});` in `/plugins/LatestPostList/js/latestpostlist.js`
$('.RefreshButton').removeClass('Hidden');
$('.RefreshButton').click(GetLatestPosts);
Feel free to style .RefreshButton how ever you would like with your custom.css sheet.
Comments
Thanks for trying my addon!
The module in the panel should refresh itself on a set interval. Is this not happening?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight i want button, click and refresh
There is one included, but it looks different on each platform to fit in with the native look and feel. On my platform it looks like this:
If you really want a button on the panel, add your markup and then add a handler to call the GetLatestPosts function in JS.
Sample Markup:
Sample JS:
Feel free to style
.RefreshButton
how ever you would like with yourcustom.css
sheet.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight thank you soo muchh