Options
All
  • Public
  • Public/Protected
  • All
Menu

MultiSelect provides a control for allowing a user to select multiple items from a list.

It use a stack to display the selected items.

+=========================+
|  <select>               |
+=========================+
+-------------------------+
|   <item>              x |
+-------------------------+
+-------------------------+
|   <item>              x |
+-------------------------+
+-------------------------+
|   <item>              x |
+-------------------------+

Type parameters

  • V

Hierarchy

Implements

Index

Constructors

constructor

  • children is an array of content passed to this Component.

    Parameters

    Returns MultiSelect

Properties

attrs

children

children: Content[]

error

error: Error<V[], MultiSelectAttrs<V>, GenericFeedbackControl<V[], MultiSelectAttrs<V>>> = error(this)(_root(this))

getValidationState

getValidationState: GetValidationState = getValidationState(_root(this))

neutral

neutral: Neutral<V[], MultiSelectAttrs<V>, GenericFeedbackControl<V[], MultiSelectAttrs<V>>> = neutral(this)(_root(this))

setMessage

setMessage: SetMessage<V[], MultiSelectAttrs<V>, GenericFeedbackControl<V[], MultiSelectAttrs<V>>> = setMessage(this)(_messages(this))

success

success: Success<V[], MultiSelectAttrs<V>, GenericFeedbackControl<V[], MultiSelectAttrs<V>>> = success(this)(_root(this))

view

view: View = new views.Main(this)

warning

warning: Warning<V[], MultiSelectAttrs<V>, GenericFeedbackControl<V[], MultiSelectAttrs<V>>> = warning(this)(_root(this))

Methods

push

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

update

Object literals

values

values: object

id

id: object

input

input: string = "button"

message

message: string = "message"

root

root: string = "root"

search

search: string = "search"

label

label: object

id

id: string = this.attrs.ww.name

text

text: string = this.attrs.ww.label || ''

messages

messages: object

error

error: string = this.attrs.ww.error

id

id: string = "message"

success

success: string = this.attrs.ww.success

warning

warning: string = this.attrs.ww.warning

root

root: object

class

class: string = concat(MULTI_SELECT, this.attrs.ww && this.attrs.ww.class)

id

id: string = "root"

search

search: object

id

id: string = "search"

name

name: string = (this.attrs.ww && this.attrs.ww.name) || ''

value

value: string = ""

onChange

onSearch

stack

stack: object

decorator

decorator: function = this.attrs.ww.decorator ?this.attrs.ww.decorator :(v: V) => String(v)

Type declaration

    • (m: V): string
    • Parameters

      • m: V

      Returns string

id

id: string = "stack"

name

name: string = this.attrs.ww.name

value

value: V[] = (this.attrs.ww && this.attrs.ww.value) ? this.attrs.ww.value : []

onChange

Generated using TypeDoc