\Alddesign\Crudkit\ClassesAjaxOptions

Provides parameters for the behavoir of ajax powered columns. (Custom ajax columns or many to one ajax columns)

Summary

Methods
Properties
Constants
__construct()
$minInputLength
$imageFieldname
$searchFieldnames
$maxResults
$fullSearch
$maxImageWidth
$inputTimeout
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$minInputLength

$minInputLength : integer

Type

integer — The min. amount of characters to type before the ajax call is fired

$imageFieldname

$imageFieldname : string

Type

string — The name of a table field that is used to display an image in the result list

$searchFieldnames

$searchFieldnames : array<mixed,string>

Type

array<mixed,string> — The names of the table fields that are used for the searching records

$maxResults

$maxResults : integer

Type

integer — The max. number of results to return, 0 = unlimited

$fullSearch

$fullSearch : boolean

Type

boolean — true = %term% (contains), false = term% (starts with)

$maxImageWidth

$maxImageWidth : integer

Type

integer — The max. with of the images in the result list (will be croped down to this)

$inputTimeout

$inputTimeout : integer

Type

integer — The amount of time without user input, before the ajax call is fired [milliseconds]

Methods

__construct()

__construct(string  $imageFieldname = '', array<mixed,string>  $searchFieldnames = array(), integer  $minInputLength = 1, integer  $maxResults = 50, boolean  $fullSearch = false, integer  $maxImageWidth = 100, integer  $inputTimeout = 300) 

Parameters

string $imageFieldname

The name of a table field that is used to display an image in the result list

array<mixed,string> $searchFieldnames

The names of the table fields that are used for the searching records

integer $minInputLength

The min. amount of characters to type before the ajax call is fired

integer $maxResults

The max. number of results to return, 0 = unlimited

boolean $fullSearch

true = %term% (contains), false = term% (starts with)

integer $maxImageWidth

The max. with of the images in the result list (will be croped down to this)

integer $inputTimeout

The amount of time without user input, before the ajax call is fired [milliseconds]