Methods
onDirectionalPadClicked
onDirectionalPadClicked( callback: ( buttonId: string ) => void ) : XapiResult
Parameters
callback: ( buttonId: string ) => void
onDirectionalPadPressed
onDirectionalPadPressed( callback: ( buttonId: string ) => void ) : XapiResult
Parameters
callback: ( buttonId: string ) => void
onDirectionalPadReleased
onDirectionalPadReleased( callback: ( buttonId: string ) => void ) : XapiResult
Parameters
callback: ( buttonId: string ) => void
onGroupButtonPressed
onGroupButtonPressed( callback: ( groupButtonId: string ) => void ) : XapiResult
Parameters
callback: ( groupButtonId: string ) => void
( groupButtonId: string ) : void
onGroupButtonReleased
onGroupButtonReleased( callback: ( groupButtonId: string ) => void ) : XapiResult
Parameters
callback: ( groupButtonId: string ) => void
( groupButtonId: string ) : void
onPromptResponse
onPromptResponse( callback: ( choiceId: number ) => void ) : XapiResult
Parameters
callback: ( choiceId: number ) => void
onSliderChanged
onSliderChanged( callback: ( value: number ) => void , min: number , max: number ) : XapiResult
Parameters
callback: ( value: number ) => void
min: number
max: number
onSliderReleased
onSliderReleased( callback: ( value: number ) => void , min: number , max: number ) : XapiResult
Parameters
callback: ( value: number ) => void
min: number
max: number
onSpinnerClicked
onSpinnerClicked( callback: ( increment: boolean ) => void ) : XapiResult
Parameters
callback: ( increment: boolean ) => void
( increment: boolean ) : void
onSpinnerPressed
onSpinnerPressed( callback: ( increment: boolean ) => void ) : XapiResult
Parameters
callback: ( increment: boolean ) => void
( increment: boolean ) : void
onSpinnerReleased
onSpinnerReleased( callback: ( increment: boolean ) => void ) : XapiResult
Parameters
callback: ( increment: boolean ) => void
( increment: boolean ) : void
onTextInputCancel
onTextInputCancel( callback: ( ) => void ) : XapiResult
onTextResponse
onTextResponse( callback: ( text: string ) => void ) : XapiResult
Parameters
callback: ( text: string ) => void
onToggleButtonChanged
onToggleButtonChanged( callback: ( isOn: boolean ) => void ) : XapiResult
Parameters
callback: ( isOn: boolean ) => void
spin
spin( props: {} , callback: ( ) => void ) : void
Parameters
props: {}
callback: ( ) => void
Returns void
Legend
Namespace
Function
Type alias
jQuery like way to instantiate ui elements.
You can instantiate ui elements with the appropriate id (panel id, widget id etc), then set event listeners on that element.
Example:
Note: The library does not check that the id you provide exists, is valid or of the correct type, this is the reponsibility of the user. That also means that you can create your listeners before the element actually exists.