works.iterative.ui.model.forms
package works.iterative.ui.model.forms
Members list
Type members
Classlikes
sealed trait AbsolutePath extends IdPath
trait FormState
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait AbsolutePathclass FullPathobject Roottrait RelativePathobject Emptyclass RelPathShow all
object IdPath
sealed trait RelativePath extends IdPath
final case class UIBlock(id: UIFormId, messageKey: UIMessageKey) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UIButton(id: UIFormId, name: UIFieldName, intent: UIButtonIntent, messageKey: UIMessageKey, decorations: List[UIFieldDecoration]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
enum UIButtonIntent
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class UIChoiceField(id: UIFormId, fieldName: UIFieldName, rawValue: Option[String], values: List[UIChoiceOption], decorations: List[UIFieldDecoration]) extends UIField
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFieldclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
enum UIFieldDecoration
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class UIFileField(id: UIFormId, fieldName: UIFieldName, fileList: Option[List[UIFile]], multiple: Boolean, decorations: List[UIFieldDecoration]) extends UIField
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFieldclass Objecttrait Matchableclass AnyShow all
final case class UIFlexRow(children: Seq[UIFormElement]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UIForm(id: UIFormId, messageKey: UIMessageKey, children: Seq[UIFormElement], data: FormState, context: Option[Map[String, String]], errors: List[UserMessage] = ...)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class UIBlockclass UIButtonclass UIFlexRowclass UIFormSectionclass UIGridclass UIHiddenFieldclass UILabeledFieldclass UIRepeatedGroupShow all
final case class UIFormSection(id: UIFormId, level: Int, messageKey: UIMessageKey, children: Seq[UIFormElement], decorations: List[UIFieldDecoration], repeatIndex: Option[Int]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UIGrid(children: Seq[Seq[UIGridCell]]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class UIHiddenField(id: UIFormId, fieldName: UIFieldName, value: Option[String]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UILabeledField(id: UIFormId, messageKey: UIMessageKey, field: UIField, decorations: List[UIFieldDecoration]) extends UIFormElement
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UIRepeatedGroup(id: UIFormId, fieldName: UIFieldName, templates: List[String], optional: Boolean, rows: Seq[UIRepeatedRow], decorations: List[UIFieldDecoration]) extends UIFormElement
A repeated group with its row boundaries intact: fieldName is the hidden field the item list round-trips through, templates are the item types that can be added, and optional says whether the group may be empty — enough for any interpreter to derive add/remove affordances.
A repeated group with its row boundaries intact: fieldName is the hidden field the item list round-trips through, templates are the item types that can be added, and optional says whether the group may be empty — enough for any interpreter to derive add/remove affordances.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFormElementclass Objecttrait Matchableclass AnyShow all
final case class UIRepeatedRow(item: String, itemType: String, index: Int, children: Seq[UIFormElement])
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class UITextField(id: UIFormId, fieldName: UIFieldName, fieldType: UIFieldType, rawValue: Option[String], decorations: List[UIFieldDecoration]) extends UIField
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UIFieldclass Objecttrait Matchableclass AnyShow all
Types
In this article