Skip to main content

Textual input

Short text

TextField is a simple text input field.

from viktor.parametrization import ViktorParametrization, TextFieldclass Parametrization(ViktorParametrization):    text = TextField('This is a TextField')

Long text

Changed in v12.1.0

TextAreaInput has been renamed to TextAreaField

For lengthier inputs, the TextAreaField can be used.

from viktor.parametrization import ViktorParametrization, TextAreaFieldclass Parametrization(ViktorParametrization):    text = TextAreaField('This is a TextAreaField')

Static text

For more information on how to add a static text to the parametrization, that cannot be modified by the user, see Text. There is no value associated with an Text field within the params.