kvision / pl.treksoft.kvision.form / Form / <init>

<init>

Form(panel: FormPanel<K>? = null, modelFactory: (Map<String, Any?>) -> K)

Creates a form with a given modelFactory function

Parameters

K - model class type

panel - optional instance of FormPanel

modelFactory - function transforming a Map<String, Any?> to a data model of class K

Constructor
Creates a form with a given modelFactory function