TaAjaxOptions

data class TaAjaxOptions(url: String?, preprocessQuery: (String) -> dynamic?, preprocessData: (dynamic) -> Array<String>?, beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> dynamic?, httpType: HttpType, dataType: DataType, processData: Boolean)

Data class for Typeahead AJAX options.

Parameters

url

the url address

preprocessQuery

a function to process query string for sending

preprocessData

a function to process received data

beforeSend
httpType
dataType
processData

Constructors

Link copied to clipboard
fun TaAjaxOptions(url: String? = null, preprocessQuery: (String) -> dynamic? = null, preprocessData: (dynamic) -> Array<String>? = null, beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> dynamic? = null, httpType: HttpType = HttpType.GET, dataType: DataType = DataType.JSON, processData: Boolean = true)

Properties

Link copied to clipboard
val beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> dynamic? = null
Link copied to clipboard
val dataType: DataType
Link copied to clipboard
val httpType: HttpType
Link copied to clipboard
val preprocessData: (dynamic) -> Array<String>? = null
Link copied to clipboard
val preprocessQuery: (String) -> dynamic? = null
Link copied to clipboard
val processData: Boolean = true
Link copied to clipboard
val url: String? = null