Object/Class

io.udash.bootstrap.form

UdashForm

Related Docs: class UdashForm | package form

Permalink

object UdashForm

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UdashForm
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class FormEvent(source: UdashForm, tpe: EventType) extends AbstractCase with component.ListenableEvent[UdashForm] with Product with Serializable

    Permalink
  2. case class HorizontalLayoutSettings(labelWidth: Int = 4, inputWidth: Int = 8, breakpoint: ResponsiveBreakpoint = ResponsiveBreakpoint.Medium, labelSize: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None) extends Product with Serializable

    Permalink

    Settings for the horizontal form layout.

    Settings for the horizontal form layout. More: Bootstrap Docs.

    labelWidth

    Width of the label column.

    inputWidth

    Width of the input column.

    breakpoint

    Breakpoint of the form's grid.

    labelSize

    Size of the label text.

  3. final class ValidationTrigger extends AbstractValueEnum

    Permalink

    Decides when the provided property will be validated in order to highlight the input.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object FormEvent extends Serializable

    Permalink
  5. object ValidationTrigger extends AbstractValueEnumCompanion[ValidationTrigger] with Serializable

    Permalink
  6. def apply(inline: Boolean = false, inputValidationTrigger: ValidationTrigger = ValidationTrigger.OnBlur, selectValidationTrigger: ValidationTrigger = ValidationTrigger.OnChange, componentId: component.ComponentId = ComponentId.newId())(content: (FormElementsFactory) ⇒ scalatags.JsDom.all.Modifier): UdashForm

    Permalink

    Creates a standard form with a provided content.

    Creates a standard form with a provided content.
    Example:

    UdashForm() { factory => Seq(
      factory.input.formGroup()(
        nested => factory.input.textInput(name, validationTrigger = ValidationTrigger.OnBlur)().render,
        labelContent = nested => Some(span("Name: ", nested(bind(name)))),
        validFeedback = _ => Some(span("Looks good.")),
        invalidFeedback = _ => Some(span("Name is too short."))
      ),
      factory.input.formGroup()(
        nested => factory.input.passwordInput(name, validationTrigger = ValidationTrigger.Instant)().render,
        labelContent = nested => Some(span("Password: ", nested(bind(name)))),
        validFeedback = _ => Some(span("Looks good.")),
        invalidFeedback = _ => Some(span("Name is too short."))
      )
    )}.render
    
    More: Bootstrap Docs.

    inline

    If true, creates an inline form.

    inputValidationTrigger

    Default validation trigger for text inputs in this form.

    selectValidationTrigger

    Default validation trigger for selectors like checkboxes or select inputs.

    componentId

    An id of the root DOM node.

    content

    A factory of the form elements. All elements created with the factory will be cleaned up on the form cleanup.

    returns

    A UdashForm component, call render to create a DOM element.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped