Skip to content

Commit

Permalink
AutoSuggest: Adding id & className options to autosuggest
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Nov 26, 2009
1 parent 931de0e commit dff439a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/widgets/autosuggest/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@
If false, a random number will be added to the URL to ensure the
results do not come from the browser's cache.
@param {Boolean} [opts.selectCompletedText=true] Set to false to prevent the widget from highlighting the completed text in the input element by selecting it.
@param {String} [opts.id] ID for the AutoSuggest's container element.
This (or className) should be used if you're going to restyle the output,
to ensure your restyling only changes the autosuggests you want to restyle.
@param {String} [opts.className] Class names for the AutoSuggest's container element.
This (or id) should be used if you're going to restyle the output,
to ensure your restyling only changes the autosuggests you want to restyle.
@param {Function} [opts.onItemSelect] Your own handler for the itemSelect event.
@param {Function} [opts.onDataLoad] Your own handler for the dataLoad event.
Expand Down Expand Up @@ -708,7 +714,9 @@
glow.dom.create('<div class="glowCSSVERSION-autoSuggest"><ul></ul></div>'),
{
autoPosition: false,
anim: (this.opts.anim)? this.opts.anim : null
anim: (this.opts.anim)? this.opts.anim : null,
id: opts.id,
className: opts.className
}
);

Expand Down

0 comments on commit dff439a

Please sign in to comment.