Validation

import arakawa as ar

Control blocks are powered by Formkit and most of blocks can have a string style validation.

ar.TextBox("text", validation="number|between:20,50", help="Enter a number between 20 and 50")

required is using the Formkit validation under the hood and validation will be combined with it.

ar.TextBox("text", required=True, validation="number|between:20,50", help="Enter a number between 20 and 50")

Info

The above input has required|number|between:20,50 validation.