gh-pages / com.nextfaze.devfun.core / DevFun / parameterViewFactories

parameterViewFactories

val parameterViewFactories: CompositeParameterViewFactoryProvider (source)

Composite list of all ParameterViewFactoryProviders.

If DevFun is unable to inject all parameters of a function, it will attempt to generate a UI that allows the user to input the missing parameter values. By default only simple types can be rendered (int, string, bool, etc).

Add parameter view factory providers using Composite.plusAssign; devFun.parameterViewFactories += MyParameterViewFactoryProvider().

Providers are checked in reverse order. i.e. Most recently added are checked first.

For an example of a custom type, see module devfun-invoke-view-colorpicker which provides a color picker for annotated int types using @ColorPicker (ColorPickerParameterViewProvider). If you have included the menu devfun-menu then the color picker module will be included transitively.

See Also

ViewFactory

viewFactory

Getter

Composite list of all ParameterViewFactoryProviders.

If DevFun is unable to inject all parameters of a function, it will attempt to generate a UI that allows the user to input the missing parameter values. By default only simple types can be rendered (int, string, bool, etc).

Add parameter view factory providers using Composite.plusAssign; devFun.parameterViewFactories += MyParameterViewFactoryProvider().

Providers are checked in reverse order. i.e. Most recently added are checked first.

For an example of a custom type, see module devfun-invoke-view-colorpicker which provides a color picker for annotated int types using @ColorPicker (ColorPickerParameterViewProvider). If you have included the menu devfun-menu then the color picker module will be included transitively.

Getter See Also

ViewFactory

viewFactory