autocompletionTextField()
static public method
Show div with auto completion
static public autocompletionTextField ( CommonDBTM $item, $field, $options = [] ) : nothing |
$item |
CommonDBTM |
item object used for create dropdown |
$field |
|
field to search for autocompletion |
$options |
|
array of possible options:
- name : string / name of the select (default is field parameter)
- value : integer / preselected value (default value of the item object)
- size : integer / size of the text field
- entity : integer / restrict to a defined entity (default entity of the object if define)
set to -1 not to take into account
- user : integer / restrict to a defined user (default -1 : no restriction)
- option : string / options to add to text field
- display : boolean / if false get string |
return |
nothing |
(print out an HTML div) |