Object/Class

io.udash.bootstrap.form

UdashForm

Related Docs: class UdashForm | package form

Permalink

object UdashForm

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UdashForm
  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. def apply(onSubmit: (Event) ⇒ Any)(componentId: ComponentId, content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates standard form with provided content.

    Creates standard form with provided content.
    Example: UdashForm(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    onSubmit

    Callback executed when a form is submitted

    componentId

    Id of the root DOM node.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  5. def apply(content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates standard form with provided content.

    Creates standard form with provided content.
    Example: UdashForm(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def checkbox(validation: Option[scalatags.JsDom.all.Modifier] = None, inputId: ComponentId = UdashBootstrap.newId())(labelContent: scalatags.JsDom.all.Modifier*)(property: udash.Property[Boolean], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates checkbox.

    Creates checkbox.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    inputId

    Id of the input DOM element.

    labelContent

    The content of a label. If empty, the label won't be created.

    property

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  8. def checkboxes(checkboxStyle: CssStyle = BootstrapStyles.Form.checkbox, groupId: ComponentId = UdashBootstrap.newId())(selected: udash.SeqProperty[String], options: Seq[String], decorator: (Input, String) ⇒ Element = defaultDecorator(checkboxStyle)): scalatags.JsDom.all.Modifier

    Permalink

    Creates checkboxes for provided options.

    Creates checkboxes for provided options.

    checkboxStyle

    Style applied to each checkbox by the default decorator.

    groupId

    Id of created form group.

    selected

    Property which will be synchronised with the selected elements.

    options

    List of possible values. Each options has one checkbox.

    decorator

    This methods allows you to customize DOM structure around each checkbox. By default it creates a label around input with option value as its content.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def disabled(disabled: udash.ReadableProperty[Boolean] = Property(true))(content: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Wrapper for disabled elements.

    Wrapper for disabled elements.

    disabled

    Property indicating if elements are disabled. You can change it anytime.

  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def fileInput(inputId: ComponentId = UdashBootstrap.newId(), validation: Option[scalatags.JsDom.all.Modifier] = None)(labelContent: scalatags.JsDom.all.Modifier*)(name: String, acceptMultipleFiles: udash.ReadableProperty[Boolean], selectedFiles: udash.SeqProperty[File], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates file input group.

    Creates file input group.

    inputId

    Id of the input DOM element.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    labelContent

    The content of a label. If empty, the label won't be created.

    name

    Name of the input. This value will be assigned to the name attribute of the input.

    acceptMultipleFiles

    If true, input will accept multiple files.

    selectedFiles

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def group(content: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates from group with provided content.

    Creates from group with provided content. You can put it into UdashForm.
    Example: UdashForm(UdashForm.group(...)).render

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def horizontal(onSubmit: (Event) ⇒ Any)(componentId: ComponentId, content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates horizontal form with provided content.

    Creates horizontal form with provided content.
    Example: UdashForm.horizontal(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    onSubmit

    Callback executed when a form is submitted

    componentId

    Id of the root DOM node.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  19. def horizontal(content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates horizontal form with provided content.

    Creates horizontal form with provided content.
    Example: UdashForm.horizontal(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  20. def inline(onSubmit: (Event) ⇒ Any)(componentId: ComponentId, content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates inline form with provided content.

    Creates inline form with provided content.
    Example: UdashForm.inline(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    onSubmit

    Callback executed when a form is submitted

    componentId

    Id of the root DOM node.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  21. def inline(content: scalatags.JsDom.all.Modifier*): UdashForm

    Permalink

    Creates inline form with provided content.

    Creates inline form with provided content.
    Example: UdashForm.inline(UdashForm.textInput()("User name")(user.subProp(_.name))).render
    More: Bootstrap Docs.

    content

    Form content

    returns

    UdashForm component, call render to create DOM element.

  22. def input(el: Element): Element

    Permalink

    Wrapper for inputs in form.

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def multiselect(selected: udash.SeqProperty[String], options: Seq[String], label: (String) ⇒ scalatags.JsDom.all.Modifier = Select.defaultLabel, inputId: ComponentId = UdashBootstrap.newId()): scalatags.JsDom.all.Modifier

    Permalink

    Creates multiple selection input for provided options.

    Creates multiple selection input for provided options.

    selected

    Property which will be synchronised with the selected elements.

    options

    List of possible values. Each options has one checkbox.

    label

    This methods allows you to customize label of each option. By default it creates a label around input with option value as its content.

    inputId

    Id of the select DOM element.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def numberInput(inputId: ComponentId = UdashBootstrap.newId(), validation: Option[scalatags.JsDom.all.Modifier] = None)(labelContent: scalatags.JsDom.all.Modifier*)(property: udash.Property[String], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates number input group.

    Creates number input group.

    inputId

    Id of the input DOM element.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    labelContent

    The content of a label. If empty, the label won't be created.

    property

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  29. def passwordInput(inputId: ComponentId = UdashBootstrap.newId(), validation: Option[scalatags.JsDom.all.Modifier] = None)(labelContent: scalatags.JsDom.all.Modifier*)(property: udash.Property[String], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates password input group.

    Creates password input group.

    inputId

    Id of the input DOM element.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    labelContent

    The content of a label. If empty, the label won't be created.

    property

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  30. def radio(radioStyle: CssStyle = BootstrapStyles.Form.radio, groupId: ComponentId = UdashBootstrap.newId())(selected: udash.Property[String], options: Seq[String], decorator: (Input, String) ⇒ Element = defaultDecorator(radioStyle)): scalatags.JsDom.all.Modifier

    Permalink

    Creates radio buttons for provided options.

    Creates radio buttons for provided options.

    radioStyle

    Style applied to each radio button by the default decorator.

    groupId

    Id of created form group.

    selected

    Property which will be synchronised with the selected elements.

    options

    List of possible values. Each options has one checkbox.

    decorator

    This methods allows you to customize DOM structure around each checkbox. By default it creates a label around input with option value as its content.

  31. def select(selected: udash.Property[String], options: Seq[String], label: (String) ⇒ scalatags.JsDom.all.Modifier = Select.defaultLabel, inputId: ComponentId = UdashBootstrap.newId()): scalatags.JsDom.all.Modifier

    Permalink

    Creates selection input for provided options.

    Creates selection input for provided options.

    selected

    Property which will be synchronised with the selected element.

    options

    List of possible values. Each options has one checkbox.

    label

    This methods allows you to customize label of each option. By default it creates a label around input with option value as its content.

    inputId

    Id of the select DOM element.

  32. def staticControl(content: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates static control element.

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

    Permalink
    Definition Classes
    AnyRef
  34. def textArea(inputId: ComponentId = UdashBootstrap.newId(), validation: Option[scalatags.JsDom.all.Modifier] = None)(labelContent: scalatags.JsDom.all.Modifier*)(property: udash.Property[String], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates text area input group.

    Creates text area input group.

    inputId

    Id of the input DOM element.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    labelContent

    The content of a label. If empty, the label won't be created.

    property

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  35. def textInput(inputId: ComponentId = UdashBootstrap.newId(), validation: Option[scalatags.JsDom.all.Modifier] = None)(labelContent: scalatags.JsDom.all.Modifier*)(property: udash.Property[String], inputModifiers: scalatags.JsDom.all.Modifier*): scalatags.JsDom.all.Modifier

    Permalink

    Creates text input group.

    Creates text input group.

    inputId

    Id of the input DOM element.

    validation

    Modifier applied to the created form group. Take a look at UdashForm.validation - an example field validation implementation.

    labelContent

    The content of a label. If empty, the label won't be created.

    property

    Property which will be synchronised with the input content.

    inputModifiers

    Modifiers applied directly to the input element.

  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def validation(property: udash.ReadableProperty[_]): scalatags.JsDom.all.Modifier

    Permalink

    Binds provided property validation result to element Bootstrap validation style.

  38. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped