Home Reference Source
import ChoicesWrapper from '@formio/js/src/utils/ChoicesWrapper.js'
public class | source

ChoicesWrapper

Extends:

@formio/choices.js~Choices → ChoicesWrapper

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

timeout: *

Private Members
private

Method Summary

Public Methods
public

hideDropdown(args: ...*)

public

onSelectValue(objectPattern: {"event": *, "activeItems": *, "hasActiveDropdown": *})

public

showDropdown(args: ...*)

Private Methods
private

_handleButtonAction(activeItems: *, element: *): *

private

_onBlur(args: ...*)

private

_onDirectionKey(args: ...*): *

private

_onEnterKey(args: *)

private

_onKeyDown(event: *): *

private

_onTabKey(objectPattern: {"activeItems": *, "hasActiveDropdown": *})

private

_onTouchEnd(event: *)

private

_selectHighlightedChoice(activeItems: *)

Public Constructors

public constructor() source

Public Members

public isDirectionUsing: boolean source

public shouldOpenDropDown: boolean source

public timeout: * source

Private Members

private _wasTap: boolean source

Public Methods

public hideDropdown(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public onSelectValue(objectPattern: {"event": *, "activeItems": *, "hasActiveDropdown": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"event": *, "activeItems": *, "hasActiveDropdown": *}
  • default: {"event":null,"activeItems":null,"hasActiveDropdown":null}

public showDropdown(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

Private Methods

private _handleButtonAction(activeItems: *, element: *): * source

Params:

NameTypeAttributeDescription
activeItems *
element *

Return:

*

private _onBlur(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

private _onDirectionKey(args: ...*): * source

Params:

NameTypeAttributeDescription
args ...*

Return:

*

private _onEnterKey(args: *) source

Params:

NameTypeAttributeDescription
args *

private _onKeyDown(event: *): * source

Params:

NameTypeAttributeDescription
event *

Return:

*

private _onTabKey(objectPattern: {"activeItems": *, "hasActiveDropdown": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"activeItems": *, "hasActiveDropdown": *}
  • default: {"activeItems":null,"hasActiveDropdown":null}

private _onTouchEnd(event: *) source

Params:

NameTypeAttributeDescription
event *

private _selectHighlightedChoice(activeItems: *) source

Params:

NameTypeAttributeDescription
activeItems *