Add on_change argument
Add optional on_change argument which allows you to pass a function which runs when the value changes. Respects the debounce argument, so it only runs after the debounce time has elapsed (if there is a debounce value).
Add optional on_change argument which allows you to pass a function which runs when the value changes. Respects the debounce argument, so it only runs after the debounce time has elapsed (if there is a debounce value).