Skip to main content

Textual input

Short text

TextField is a simple text input field.

from viktor.parametrization import ViktorParametrization, TextField


class Parametrization(ViktorParametrization):
text = TextField('This is a TextField')

Long text

For lengthier inputs, the TextAreaField can be used.

from viktor.parametrization import ViktorParametrization, TextAreaField


class 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.