Fb:typeahead-input
From Facebook Developers Wiki
Contents |
[edit] Description
This tag is currently in beta. Please post bugs in the Bug Tracker.
Creates a type-ahead tool (as suggested) that will give you the results that you specify. To add options in the input box, use fb:typeahead-option.
[edit] Attributes
| Required | Name | Type | Description | |
| optional | name | string | The variable name that is sent in the POST request when the form is submitted. |
|---|
[edit] Examples
| <fb:fbml version="1.1"> <fb:typeahead-input name="your_input_name"> <fb:typeahead-option value="me"><fb:name uid=1160 capitalize=yes linked=no /></fb:typeahead-option> <fb:typeahead-option value="ex">x</fb:typeahead-option> <fb:typeahead-option>why</fb:typeahead-option> </fb:typeahead-input> </fb:fbml> |
[edit] Notes
- The tag must be wrapped in a fb:fbml tag with version 1.1.
- You must name the input.
- You must set autocomplete="off" to prevent the browser's autocomplete from overriding this tag's.
[edit] Known Issues
- In profile boxes, the autocomplete options cannot extend beyond the edges of the box the application owns.
- HTML and FBML that generates HTML inside of fb:typeahead-option is being interpreted as literal HTML
[edit] Bug Reports
- A bug report was filed concerning the wrong values of the input posting.
- A bug report was filed regarding the number of inputs the typeahead can handle and the rendering of type-ahead suggestions.
- unable to use indexed name in fb:typeahead value
- needs ability to set the currently 'selected' item
