[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/Html/QuickForm/ -> autocomplete.php (sommaire)

(pas de description)

Poids: 249 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

HTML_QuickForm_autocomplete:: (8 méthodes):
  HTML_QuickForm_autocomplete()
  setOptions()
  toHtml()
  setSelectionRange()
  setCaretToPosition()
  replaceSelection()
  autocompleteMatch()
  autocomplete()


Classe: HTML_QuickForm_autocomplete  - X-Ref

Class to dynamically create an HTML input text element that
at every keypressed javascript event, check in an array of options
if there's a match and autocomplete the text in case of match.

Ex:
$autocomplete =& $form->addElement('autocomplete', 'fruit', 'Favourite fruit:');
$options = array("Apple", "Orange", "Pear", "Strawberry");
$autocomplete->setOptions($options);

HTML_QuickForm_autocomplete($elementName = null, $elementLabel = null, $options = null, $attributes = null)   X-Ref
Class constructor

param: string    $elementName    (optional)Input field name attribute
param: string    $elementLabel   (optional)Input field label in form
param: array     $options        (optional)Autocomplete options
param: mixed     $attributes     (optional)Either a typical HTML attribute string
return: void

setOptions($options)   X-Ref
Sets the options for the autocomplete input text element

param: array    $options    Array of options for the autocomplete input text element
return: void

toHtml()   X-Ref
Returns Html for the autocomplete input text element

return: string

setSelectionRange(input, selectionStart, selectionEnd)   X-Ref
Pas de description

setCaretToPosition(input, position)   X-Ref
Pas de description

replaceSelection(input, replaceString)   X-Ref
Pas de description

autocompleteMatch(text, values)   X-Ref
Pas de description

autocomplete(textbox, event, values)   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics