Object

io.udash.bootstrap.form.UdashForm.FormElementsFactory

input

Related Doc: package FormElementsFactory

Permalink

object input

Provides input elements factory methods.

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

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkButtons[T](selectedItems: properties.seq.SeqProperty[T, _ <: udash.ReadableProperty[T]], options: udash.ReadableSeqProperty[T], inline: udash.ReadableProperty[Boolean] = UdashBootstrap.False, validationTrigger: ValidationTrigger = selectValidationTrigger, groupId: component.ComponentId = ComponentId.newId())(inputModifier: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., labelContent: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., validFeedback: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., invalidFeedback: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ...)(implicit arg0: PropertyCreator[T]): UdashBootstrapComponent

    Permalink

    Creates a checkboxes with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a checkboxes with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. It also creates a label and validation feedback elements for each checkbox.

    selectedItems

    Property which will be synchronised with the checkbox state and validated.

    options

    Seq of available options, one checkbox will be created for each option.

    validationTrigger

    Selects the event updating validation state of the input.

    groupId

    Id of the root element.

    inputModifier

    Modifiers applied directly to the input element. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    labelContent

    Optional label content. It will be wrapped into label element with properly set for attribute. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    validFeedback

    Optional content of positive validation feedback. It will be wrapped into div element with valid-feedback style. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    invalidFeedback

    Optional content of negative validation feedback. It will be wrapped into div element with invalid-feedback style. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

  6. def checkbox(property: udash.Property[Boolean], validationTrigger: ValidationTrigger = selectValidationTrigger, inline: udash.ReadableProperty[Boolean] = UdashBootstrap.False, inputId: component.ComponentId = ComponentId.newId(), groupId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, labelContent: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, validFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, invalidFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a checkbox with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a checkbox with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. It also creates a label and validation feedback elements for the checkbox.

    property

    Property which will be synchronised with the checkbox state and validated.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    groupId

    Id of the root element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

    labelContent

    Optional label content. It will be wrapped into label element with properly set for attribute. Use the provided interceptor to properly clean up bindings inside the content.

    validFeedback

    Optional content of positive validation feedback. It will be wrapped into div element with valid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

    invalidFeedback

    Optional content of negative validation feedback. It will be wrapped into div element with invalid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def fileInput(selectedFiles: udash.SeqProperty[File], acceptMultipleFiles: udash.ReadableProperty[Boolean] = UdashBootstrap.False, size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = inputValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputName: String, inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, labelContent: (NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier = _ => "", validFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, invalidFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a file input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a file input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. It creates the whole input compoennt including a label and validation feedback.

    selectedFiles

    This property contains information about files selected by a user.

    acceptMultipleFiles

    Accepts more than one file if true.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputName

    Input element name.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

    labelContent

    Required label content. It will be wrapped into label element with properly set for attribute. Use the provided interceptor to properly clean up bindings inside the content.

    validFeedback

    Optional content of positive validation feedback. It will be wrapped into div element with valid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

    invalidFeedback

    Optional content of negative validation feedback. It will be wrapped into div element with invalid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def formGroup(horizontal: Option[HorizontalLayoutSettings] = None, groupId: component.ComponentId = ComponentId.newId())(input: (NestedInterceptor) ⇒ Element, labelContent: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, validFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, invalidFeedback: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None, helpText: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a standard form group for the provided input.

    Creates a standard form group for the provided input. It contains a label and validation feedback elements. The group layout can be organized vertically or horizontally based on the provided options. You can wrap the result into grid elements in order to create more complex form layout.

    horizontal

    Optional settings for a horizontal layout. If None, the layout will be organized vertically.

    groupId

    Id of the root element.

    input

    The input element. It can be wrapped into UdashInputGroup or any other decoration. Use the provided interceptor to properly clean up bindings inside the content.

    labelContent

    Optional label content. It will be wrapped into label element with properly set for attribute. Use the provided interceptor to properly clean up bindings inside the content.

    validFeedback

    Optional content of positive validation feedback. It will be wrapped into div element with valid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

    invalidFeedback

    Optional content of negative validation feedback. It will be wrapped into div element with invalid-feedback style. Use the provided interceptor to properly clean up bindings inside the content.

    helpText

    Optional content of help text block. It will be wrapped into div element with form-text text-muted style. Use the provided interceptor to properly clean up bindings inside the content.

  13. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  16. def multiSelect[T, ElemType <: udash.Property[T]](selectedItems: properties.seq.SeqProperty[T, ElemType], options: udash.ReadableSeqProperty[T], size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = selectValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(itemLabel: (T) ⇒ scalatags.JsDom.all.Modifier, inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None)(implicit arg0: PropertyCreator[T]): UdashBootstrapComponent

    Permalink

    Creates a multiple select menu with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a multiple select menu with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    selectedItems

    Property containing selected elements.

    options

    SeqProperty of available options.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    itemLabel

    Provides options' labels.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def numberInput(property: udash.Property[String], debounce: Duration = 20 millis, size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = inputValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a number input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a number input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    property

    Property which will be synchronised with the input content and validated.

    debounce

    Property update timeout after input changes.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  21. def passwordInput(property: udash.Property[String], debounce: Duration = 20 millis, size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = inputValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a password input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a password input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    property

    Property which will be synchronised with the input content and validated.

    debounce

    Property update timeout after input changes.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  22. def radioButtons[T](selectedItem: udash.Property[T], options: udash.ReadableSeqProperty[T], inline: udash.ReadableProperty[Boolean] = UdashBootstrap.False, validationTrigger: ValidationTrigger = selectValidationTrigger, groupId: component.ComponentId = ComponentId.newId())(inputModifier: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., labelContent: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., validFeedback: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ..., invalidFeedback: (T, Int, NestedInterceptor) ⇒ Option[scalatags.JsDom.all.Modifier] = ...)(implicit arg0: PropertyCreator[T]): UdashBootstrapComponent

    Permalink

    Creates radio buttons with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates radio buttons with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. It also creates a label and validation feedback elements for each radio button.

    selectedItem

    Property which will be synchronised with the radio state and validated.

    options

    Seq of available options, one button will be created for each option.

    validationTrigger

    Selects the event updating validation state of the input.

    groupId

    Id of the root element.

    inputModifier

    Modifiers applied directly to the input element. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    labelContent

    Optional label content. It will be wrapped into label element with properly set for attribute. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    validFeedback

    Optional content of positive validation feedback. It will be wrapped into div element with valid-feedback style. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

    invalidFeedback

    Optional content of negative validation feedback. It will be wrapped into div element with invalid-feedback style. The factory takes item value and index as the arguments. Use the provided interceptor to properly clean up bindings inside the content.

  23. def rangeInput(value: udash.Property[Double], minValue: udash.ReadableProperty[Double] = 0d.toProperty, maxValue: udash.ReadableProperty[Double] = 100d.toProperty, valueStep: udash.ReadableProperty[Double] = 1d.toProperty, validationTrigger: ValidationTrigger = selectValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a range input with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a range input with a custom bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    value

    Current value synchronised with the input. The value should be between minValue and maxValue. It should be also divisible by valueStep.

    minValue

    The minimum value for this input, which must not be greater than its maximum (maxValue attribute) value.

    maxValue

    The maximum value for the input. Must not be less than its minimum (minValue attribute) value.

    valueStep

    Limit the increments at which a numeric value can be set.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  24. def select[T](selectedItem: udash.Property[T], options: udash.ReadableSeqProperty[T], size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = selectValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(itemLabel: (T) ⇒ scalatags.JsDom.all.Modifier, inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None)(implicit arg0: PropertyCreator[T]): UdashBootstrapComponent

    Permalink

    Creates a select menu with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a select menu with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    selectedItem

    Property containing selected element.

    options

    SeqProperty of available options.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    itemLabel

    Provides options' labels.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def textArea(property: udash.Property[String], debounce: Duration = 20 millis, size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = inputValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a text area with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a text area with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    property

    Property which will be synchronised with the input content and validated.

    debounce

    Property update timeout after input changes.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  27. def textInput(property: udash.Property[String], debounce: Duration = 20 millis, size: udash.ReadableProperty[Option[Size]] = UdashBootstrap.None, validationTrigger: ValidationTrigger = inputValidationTrigger, inputId: component.ComponentId = ComponentId.newId())(inputModifier: Option[(NestedInterceptor) ⇒ scalatags.JsDom.all.Modifier] = None): UdashBootstrapComponent

    Permalink

    Creates a text input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid.

    Creates a text input with a default bootstrap styling and an optional validation callback which sets proper bootstrap classes: is-valid and is-invalid. Use formGroup if you want to create an input with a label and validation feedback elements.

    property

    Property which will be synchronised with the input content and validated.

    debounce

    Property update timeout after input changes.

    size

    Size of the input.

    validationTrigger

    Selects the event updating validation state of the input.

    inputId

    Id of the input DOM element.

    inputModifier

    Modifiers applied directly to the input element. Use the provided interceptor to properly clean up bindings inside the content.

  28. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped