[feature request]: Create a method on WidgetExt
that allows the user to run some code when the widget is added.
#1480
Labels
D-Easy
just needs to be implemented
enhancement
adds or requests a new feature
good first issue
requires little knowledge of druid's internals
widget
concerns a particular widget
Follows on from #1478.
Sometimes it's necessary to do something when a widget is created. One example would be to set the cursor when the mouse is hovered over the widget. Currently this would require creating a custom controller. This issue proposes the following function:
(I might have got the function signature wrong). The function would require a new type be created (
Added<T>
) andController
implemented for it. The controller would react to theLifeCycle::WidgetAdded
lifecycle event by running the closure.EDIT I did get the function signature wrong. Corrected now.
The text was updated successfully, but these errors were encountered: