Class InputNumberFormElementRenderer
java.lang.Object
io.micronaut.views.fields.render.secondary.InputNumberFormElementRenderer
- All Implemented Interfaces:
FormElementRenderer<InputNumberFormElement>
@Internal
@Secondary
@Singleton
public class InputNumberFormElementRenderer
extends Object
implements FormElementRenderer<InputNumberFormElement>
FormElementRenderer implementation of InputNumberFormElement.- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface FormElementRenderer
ATTR_CHECKED, ATTR_COLS, ATTR_DISABLED, ATTR_FOR, ATTR_ID, ATTR_MAX, ATTR_MAX_LENGTH, ATTR_MIN, ATTR_MIN_LENGTH, ATTR_NAME, ATTR_PATTERN, ATTR_PLACEHOLDER, ATTR_READ_ONLY, ATTR_REQUIRED, ATTR_ROWS, ATTR_SELECTED, ATTR_SIZE, ATTR_STEP, ATTR_TYPE, ATTR_VALUE, GREATER_THAN, LESS_THAN, SLASH, SPACE -
Constructor Summary
ConstructorsConstructorDescriptionInputNumberFormElementRenderer(io.micronaut.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull List<HtmlAttribute> attributes(@NonNull InputNumberFormElement el) render(InputNumberFormElement el, Locale locale) Renders a Form Element as HTML.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FormElementRenderer
attributes, content, render, render, renderCloseTag, renderLabel, renderOpenTag, typeHtmlAttribute
-
Constructor Details
-
InputNumberFormElementRenderer
public InputNumberFormElementRenderer(io.micronaut.context.MessageSource messageSource) - Parameters:
messageSource- Message source.
-
-
Method Details
-
render
Description copied from interface:FormElementRendererRenders a Form Element as HTML.- Specified by:
renderin interfaceFormElementRenderer<InputNumberFormElement>- Parameters:
el- Form Elementlocale- Locale- Returns:
- HTML
-
attributes
- Parameters:
el- input number- Returns:
- HTML Attributes
-