Class ViewsFormElementRenderer<T extends FormElement>

java.lang.Object
io.micronaut.views.fields.render.views.ViewsFormElementRenderer<T>
Type Parameters:
T - form element
All Implemented Interfaces:
FormElementRenderer<T>
Direct Known Subclasses:
InputCheckboxViewsFormElementRenderer, InputDateTimeLocalViewsFormElementRenderer, InputDateViewsFormElementRenderer, InputEmailViewsFormElementRenderer, InputHiddenViewsFormElementRenderer, InputNumberViewsFormElementRenderer, InputPasswordViewsFormElementRenderer, InputRadioViewsFormElementRenderer, InputSubmitViewsFormElementRenderer, InputTelViewsFormElementRenderer, InputTextViewsFormElementRenderer, InputTimeViewsFormElementRenderer, InputUrlViewsFormElementRenderer, OptionViewsFormElementRenderer, SelectViewsFormElementRenderer, TextareaViewsFormElementRenderer, TrixEditorViewsFormElementRenderer

@Internal public class ViewsFormElementRenderer<T extends FormElement> extends Object implements FormElementRenderer<T>
Implementation of FormElementRenderer which uses ViewsRenderer to render a form element with a view template.
Since:
4.1.0
Author:
Sergio del Amo
  • Constructor Details

    • ViewsFormElementRenderer

      public ViewsFormElementRenderer(ViewsRenderer<Map<String,FormElement>,?> viewsRenderer, String viewName, String modelKey)
      Parameters:
      viewsRenderer - Views Renderer
      viewName - View Name
      modelKey - Model Key
    • ViewsFormElementRenderer

      public ViewsFormElementRenderer(ViewsRenderer<Map<String,FormElement>,?> viewsRenderer, String viewName)
      Parameters:
      viewsRenderer - Views Renderer
      viewName - View Name
  • Method Details