Skip to main content

Manual line break

A LineBreak can be used to force input fields to be placed on the next 'line' to obtain a cleaner looking parametrization within an editor.

from viktor.parametrization import ViktorParametrization, NumberField, LineBreak

class Parametrization(ViktorParametrization):
n1 = NumberField('N1')
n2 = NumberField('N2')
lb = LineBreak() # split the fields in 2 pairs
n3 = NumberField('N3')
n4 = NumberField('N4')