Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUG - add an update hook function capability #27

Closed
demonnic opened this issue Sep 16, 2021 · 1 comment
Closed

SUG - add an update hook function capability #27

demonnic opened this issue Sep 16, 2021 · 1 comment

Comments

@demonnic
Copy link
Owner

Allow user to pass in a function(gauge, current, max) which returns the desired current and max such that current,max = self.updateHook(self, current, max) allows for adjustments to the gauge object itself, or the current or max values to use while templating and setting the gauge value.

Check for nil returns and use original current or max if value nothing returned.

@demonnic
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant