addDataControllerWidget

Intended for UFCS action like window.addDataControllerWidget(new MyObject());

If you provide a redrawOnChange widget, it will automatically register a change event handler that calls that widget's redraw method.

  1. DataControllerWidget!T addDataControllerWidget(Widget parent, T t, Widget redrawOnChange)
  2. DataControllerWidget!T addDataControllerWidget(Widget parent, T* t, Widget redrawOnChange)
    addDataControllerWidget
    (
    T
    )
    if (
    is(T == struct)
    )

Meta

History

The redrawOnChange parameter was added on May 28, 2021.