AceConfig-3.0 Options: Inherit "disabled" from parent group explicitly?
I want to make a "reset to default" button next to every slider in my settings.
To safe code lines and make it more maintainable, I have a function to create this reset button: Lua Code:
So the button gets disabled, whenever the slider already has the default value. But the button should also get disabled, whenever the button's parent group is disabled, as it is the case when the button does not have a "disabled" function of its own. Is there a way to explicitly check for the parent group's disable status? |
Is it not doing this already?
|
Quote:
|
Assuming you are not using the passed info table in your other disabled functions (and not using handlers) then you could use:
Lua Code:
|
Absolutely amazing!! Thank you so much!
|
All times are GMT -6. The time now is 03:08 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI