TaAjaxOptions

data class TaAjaxOptions(url: String?, preprocessQuery: (String) -> dynamic?, preprocessData: (dynamic) -> Array<String>?, beforeSend: (JQueryXHR, JQueryAjaxSettings) -> 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

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

Functions

component1
Link copied to clipboard
operator fun component1(): String?
component2
Link copied to clipboard
operator fun component2(): (String) -> dynamic?
component3
Link copied to clipboard
operator fun component3(): (dynamic) -> Array<String>?
component4
Link copied to clipboard
operator fun component4(): (JQueryXHR, JQueryAjaxSettings) -> dynamic?
component5
Link copied to clipboard
operator fun component5(): HttpType
component6
Link copied to clipboard
operator fun component6(): DataType
component7
Link copied to clipboard
operator fun component7(): Boolean
copy
Link copied to clipboard
fun copy(url: String? = null, preprocessQuery: (String) -> dynamic? = null, preprocessData: (dynamic) -> Array<String>? = null, beforeSend: (JQueryXHR, JQueryAjaxSettings) -> dynamic? = null, httpType: HttpType = HttpType.GET, dataType: DataType = DataType.JSON, processData: Boolean = true): TaAjaxOptions
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

beforeSend
Link copied to clipboard
val beforeSend: (JQueryXHR, JQueryAjaxSettings) -> dynamic? = null
dataType
Link copied to clipboard
val dataType: DataType
httpType
Link copied to clipboard
val httpType: HttpType
preprocessData
Link copied to clipboard
val preprocessData: (dynamic) -> Array<String>? = null
a function to process received data
preprocessQuery
Link copied to clipboard
val preprocessQuery: (String) -> dynamic? = null
a function to process query string for sending
processData
Link copied to clipboard
val processData: Boolean = true
url
Link copied to clipboard
val url: String? = null
the url address