.. include:: /Includes.rst.txt .. _typo3-fluid-widget-autocomplete: =================== widget.autocomplete =================== Simple autocomplete widget. .. note:: Make sure to include jQuery and jQuery UI in the HTML, like that:: You can include the provided TypoScript template that includes the above snippet to the pages headerData. Examples ======== Render lib object:: Output:: The input field and the required JavaScript for the Ajax communication. The storeSession attribute can be used in any widget and will prevent cookie creation / session storage for the widget. See Resources/Private/Templates/ViewHelpers/Widget/Autocomplete/Index.html Arguments ========= .. _widget.autocomplete_customwidgetid: customWidgetId -------------- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Extend the widget identifier with a custom widget id .. _widget.autocomplete_storesession: storeSession ------------ :aspect:`DataType` mixed :aspect:`Default` true :aspect:`Required` false :aspect:`Description` Store the widgets session (utilizing a cookie). .. _widget.autocomplete_objects: objects ------- :aspect:`DataType` mixed :aspect:`Required` true :aspect:`Description` Objects to auto-complete .. _widget.autocomplete_for: for --- :aspect:`DataType` string :aspect:`Required` true :aspect:`Description` Property to fill .. _widget.autocomplete_searchproperty: searchProperty -------------- :aspect:`DataType` string :aspect:`Required` true :aspect:`Description` Property to search within when filtering list