123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901 |
- /*
- YUI 3.4.1 (build 4118)
- Copyright 2011 Yahoo! Inc. All rights reserved.
- Licensed under the BSD License.
- http://yuilibrary.com/license/
- */
- YUI.add('autocomplete-list', function(Y) {
- /**
- * Traditional autocomplete dropdown list widget, just like Mom used to make.
- *
- * @submodule autocomplete-list
- */
- /**
- * Traditional autocomplete dropdown list widget, just like Mom used to make.
- *
- * @class AutoCompleteList
- * @extends Widget
- * @uses AutoCompleteBase
- * @uses WidgetPosition
- * @uses WidgetPositionAlign
- * @constructor
- * @param {Object} config Configuration object.
- */
- var Lang = Y.Lang,
- Node = Y.Node,
- YArray = Y.Array,
- // Whether or not we need an iframe shim.
- useShim = Y.UA.ie && Y.UA.ie < 7,
- // keyCode constants.
- KEY_TAB = 9,
- // String shorthand.
- _CLASS_ITEM = '_CLASS_ITEM',
- _CLASS_ITEM_ACTIVE = '_CLASS_ITEM_ACTIVE',
- _CLASS_ITEM_HOVER = '_CLASS_ITEM_HOVER',
- _SELECTOR_ITEM = '_SELECTOR_ITEM',
- ACTIVE_ITEM = 'activeItem',
- ALWAYS_SHOW_LIST = 'alwaysShowList',
- CIRCULAR = 'circular',
- HOVERED_ITEM = 'hoveredItem',
- ID = 'id',
- ITEM = 'item',
- LIST = 'list',
- RESULT = 'result',
- RESULTS = 'results',
- VISIBLE = 'visible',
- WIDTH = 'width',
- // Event names.
- EVT_SELECT = 'select',
- List = Y.Base.create('autocompleteList', Y.Widget, [
- Y.AutoCompleteBase,
- Y.WidgetPosition,
- Y.WidgetPositionAlign
- ], {
- // -- Prototype Properties -------------------------------------------------
- ARIA_TEMPLATE: '<div/>',
- ITEM_TEMPLATE: '<li/>',
- LIST_TEMPLATE: '<ul/>',
- // -- Lifecycle Prototype Methods ------------------------------------------
- initializer: function () {
- var inputNode = this.get('inputNode');
- if (!inputNode) {
- Y.error('No inputNode specified.');
- return;
- }
- this._inputNode = inputNode;
- this._listEvents = [];
- // This ensures that the list is rendered inside the same parent as the
- // input node by default, which is necessary for proper ARIA support.
- this.DEF_PARENT_NODE = inputNode.get('parentNode');
- // Cache commonly used classnames and selectors for performance.
- this[_CLASS_ITEM] = this.getClassName(ITEM);
- this[_CLASS_ITEM_ACTIVE] = this.getClassName(ITEM, 'active');
- this[_CLASS_ITEM_HOVER] = this.getClassName(ITEM, 'hover');
- this[_SELECTOR_ITEM] = '.' + this[_CLASS_ITEM];
- /**
- * Fires when an autocomplete suggestion is selected from the list,
- * typically via a keyboard action or mouse click.
- *
- * @event select
- * @param {EventFacade} e Event facade with the following additional
- * properties:
- *
- * <dl>
- * <dt>itemNode (Node)</dt>
- * <dd>
- * List item node that was selected.
- * </dd>
- *
- * <dt>result (Object)</dt>
- * <dd>
- * AutoComplete result object.
- * </dd>
- * </dl>
- *
- * @preventable _defSelectFn
- */
- this.publish(EVT_SELECT, {
- defaultFn: this._defSelectFn
- });
- },
- destructor: function () {
- while (this._listEvents.length) {
- this._listEvents.pop().detach();
- }
- if (this._ariaNode) {
- this._ariaNode.remove().destroy(true);
- }
- },
- bindUI: function () {
- this._bindInput();
- this._bindList();
- },
- renderUI: function () {
- var ariaNode = this._createAriaNode(),
- boundingBox = this.get('boundingBox'),
- contentBox = this.get('contentBox'),
- inputNode = this._inputNode,
- listNode = this._createListNode(),
- parentNode = inputNode.get('parentNode');
- inputNode.addClass(this.getClassName('input')).setAttrs({
- 'aria-autocomplete': LIST,
- 'aria-expanded' : false,
- 'aria-owns' : listNode.get('id')
- });
- // ARIA node must be outside the widget or announcements won't be made
- // when the widget is hidden.
- parentNode.append(ariaNode);
- // Add an iframe shim for IE6.
- if (useShim) {
- boundingBox.plug(Y.Plugin.Shim);
- }
- // Force position: absolute on the boundingBox. This works around a
- // potential CSS loading race condition in Gecko that can cause the
- // boundingBox to become relatively positioned, which is all kinds of
- // no good.
- boundingBox.setStyle('position', 'absolute');
- this._ariaNode = ariaNode;
- this._boundingBox = boundingBox;
- this._contentBox = contentBox;
- this._listNode = listNode;
- this._parentNode = parentNode;
- },
- syncUI: function () {
- // No need to call _syncPosition() here; the other _sync methods will
- // call it when necessary.
- this._syncResults();
- this._syncVisibility();
- },
- // -- Public Prototype Methods ---------------------------------------------
- /**
- * Hides the list, unless the <code>alwaysShowList</code> attribute is
- * <code>true</code>.
- *
- * @method hide
- * @see show
- * @chainable
- */
- hide: function () {
- return this.get(ALWAYS_SHOW_LIST) ? this : this.set(VISIBLE, false);
- },
- /**
- * Selects the specified <i>itemNode</i>, or the current
- * <code>activeItem</code> if <i>itemNode</i> is not specified.
- *
- * @method selectItem
- * @param {Node} itemNode (optional) Item node to select.
- * @param {EventFacade} originEvent (optional) Event that triggered the
- * selection, if any.
- * @chainable
- */
- selectItem: function (itemNode, originEvent) {
- if (itemNode) {
- if (!itemNode.hasClass(this[_CLASS_ITEM])) {
- return this;
- }
- } else {
- itemNode = this.get(ACTIVE_ITEM);
- if (!itemNode) {
- return this;
- }
- }
- this.fire(EVT_SELECT, {
- itemNode : itemNode,
- originEvent: originEvent || null,
- result : itemNode.getData(RESULT)
- });
- return this;
- },
- // -- Protected Prototype Methods ------------------------------------------
- /**
- * Activates the next item after the currently active item. If there is no
- * next item and the <code>circular</code> attribute is <code>true</code>,
- * focus will wrap back to the input node.
- *
- * @method _activateNextItem
- * @chainable
- * @protected
- */
- _activateNextItem: function () {
- var item = this.get(ACTIVE_ITEM),
- nextItem;
- if (item) {
- nextItem = item.next(this[_SELECTOR_ITEM]) ||
- (this.get(CIRCULAR) ? null : item);
- } else {
- nextItem = this._getFirstItemNode();
- }
- this.set(ACTIVE_ITEM, nextItem);
- return this;
- },
- /**
- * Activates the item previous to the currently active item. If there is no
- * previous item and the <code>circular</code> attribute is
- * <code>true</code>, focus will wrap back to the input node.
- *
- * @method _activatePrevItem
- * @chainable
- * @protected
- */
- _activatePrevItem: function () {
- var item = this.get(ACTIVE_ITEM),
- prevItem = item ? item.previous(this[_SELECTOR_ITEM]) :
- this.get(CIRCULAR) && this._getLastItemNode();
- this.set(ACTIVE_ITEM, prevItem || null);
- return this;
- },
- /**
- * Appends the specified result <i>items</i> to the list inside a new item
- * node.
- *
- * @method _add
- * @param {Array|Node|HTMLElement|String} items Result item or array of
- * result items.
- * @return {NodeList} Added nodes.
- * @protected
- */
- _add: function (items) {
- var itemNodes = [];
- YArray.each(Lang.isArray(items) ? items : [items], function (item) {
- itemNodes.push(this._createItemNode(item).setData(RESULT, item));
- }, this);
- itemNodes = Y.all(itemNodes);
- this._listNode.append(itemNodes.toFrag());
- return itemNodes;
- },
- /**
- * Updates the ARIA live region with the specified message.
- *
- * @method _ariaSay
- * @param {String} stringId String id (from the <code>strings</code>
- * attribute) of the message to speak.
- * @param {Object} subs (optional) Substitutions for placeholders in the
- * string.
- * @protected
- */
- _ariaSay: function (stringId, subs) {
- var message = this.get('strings.' + stringId);
- this._ariaNode.setContent(subs ? Lang.sub(message, subs) : message);
- },
- /**
- * Binds <code>inputNode</code> events and behavior.
- *
- * @method _bindInput
- * @protected
- */
- _bindInput: function () {
- var inputNode = this._inputNode,
- alignNode, alignWidth, tokenInput;
- // Null align means we can auto-align. Set align to false to prevent
- // auto-alignment, or a valid alignment config to customize the
- // alignment.
- if (this.get('align') === null) {
- // If this is a tokenInput, align with its bounding box.
- // Otherwise, align with the inputNode. Bit of a cheat.
- tokenInput = this.get('tokenInput');
- alignNode = (tokenInput && tokenInput.get('boundingBox')) || inputNode;
- this.set('align', {
- node : alignNode,
- points: ['tl', 'bl']
- });
- // If no width config is set, attempt to set the list's width to the
- // width of the alignment node. If the alignment node's width is
- // falsy, do nothing.
- if (!this.get(WIDTH) && (alignWidth = alignNode.get('offsetWidth'))) {
- this.set(WIDTH, alignWidth);
- }
- }
- // Attach inputNode events.
- this._listEvents.concat([
- inputNode.after('blur', this._afterListInputBlur, this),
- inputNode.after('focus', this._afterListInputFocus, this)
- ]);
- },
- /**
- * Binds list events.
- *
- * @method _bindList
- * @protected
- */
- _bindList: function () {
- this._listEvents.concat([
- Y.on('windowresize', this._syncPosition, this),
- this.after({
- blur : this._afterListBlur,
- focus : this._afterListFocus,
- mouseover: this._afterMouseOver,
- mouseout : this._afterMouseOut,
- activeItemChange : this._afterActiveItemChange,
- alwaysShowListChange: this._afterAlwaysShowListChange,
- hoveredItemChange : this._afterHoveredItemChange,
- resultsChange : this._afterResultsChange,
- visibleChange : this._afterVisibleChange
- }),
- this._listNode.delegate('click', this._onItemClick,
- this[_SELECTOR_ITEM], this)
- ]);
- },
- /**
- * Clears the contents of the tray.
- *
- * @method _clear
- * @protected
- */
- _clear: function () {
- this.set(ACTIVE_ITEM, null);
- this._set(HOVERED_ITEM, null);
- this._listNode.get('children').remove(true);
- },
- /**
- * Creates and returns an ARIA live region node.
- *
- * @method _createAriaNode
- * @return {Node} ARIA node.
- * @protected
- */
- _createAriaNode: function () {
- var ariaNode = Node.create(this.ARIA_TEMPLATE);
- return ariaNode.addClass(this.getClassName('aria')).setAttrs({
- 'aria-live': 'polite',
- role : 'status'
- });
- },
- /**
- * Creates and returns an item node with the specified <i>content</i>.
- *
- * @method _createItemNode
- * @param {Object} result Result object.
- * @return {Node} Item node.
- * @protected
- */
- _createItemNode: function (result) {
- var itemNode = Node.create(this.ITEM_TEMPLATE);
- return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({
- id : Y.stamp(itemNode),
- role: 'option'
- }).setAttribute('data-text', result.text).append(result.display);
- },
- /**
- * Creates and returns a list node. If the `listNode` attribute is already
- * set to an existing node, that node will be used.
- *
- * @method _createListNode
- * @return {Node} List node.
- * @protected
- */
- _createListNode: function () {
- var listNode = this.get('listNode') || Node.create(this.LIST_TEMPLATE);
- listNode.addClass(this.getClassName(LIST)).setAttrs({
- id : Y.stamp(listNode),
- role: 'listbox'
- });
- this._set('listNode', listNode);
- this.get('contentBox').append(listNode);
- return listNode;
- },
- /**
- * Gets the first item node in the list, or <code>null</code> if the list is
- * empty.
- *
- * @method _getFirstItemNode
- * @return {Node|null}
- * @protected
- */
- _getFirstItemNode: function () {
- return this._listNode.one(this[_SELECTOR_ITEM]);
- },
- /**
- * Gets the last item node in the list, or <code>null</code> if the list is
- * empty.
- *
- * @method _getLastItemNode
- * @return {Node|null}
- * @protected
- */
- _getLastItemNode: function () {
- return this._listNode.one(this[_SELECTOR_ITEM] + ':last-child');
- },
- /**
- * Synchronizes the result list's position and alignment.
- *
- * @method _syncPosition
- * @protected
- */
- _syncPosition: function () {
- // Force WidgetPositionAlign to refresh its alignment.
- this._syncUIPosAlign();
- // Resize the IE6 iframe shim to match the list's dimensions.
- this._syncShim();
- },
- /**
- * Synchronizes the results displayed in the list with those in the
- * <i>results</i> argument, or with the <code>results</code> attribute if an
- * argument is not provided.
- *
- * @method _syncResults
- * @param {Array} results (optional) Results.
- * @protected
- */
- _syncResults: function (results) {
- if (!results) {
- results = this.get(RESULTS);
- }
- this._clear();
- if (results.length) {
- this._add(results);
- this._ariaSay('items_available');
- }
- this._syncPosition();
- if (this.get('activateFirstItem') && !this.get(ACTIVE_ITEM)) {
- this.set(ACTIVE_ITEM, this._getFirstItemNode());
- }
- },
- /**
- * Synchronizes the size of the iframe shim used for IE6 and lower. In other
- * browsers, this method is a noop.
- *
- * @method _syncShim
- * @protected
- */
- _syncShim: useShim ? function () {
- this._boundingBox.shim.sync();
- } : function () {},
- /**
- * Synchronizes the visibility of the tray with the <i>visible</i> argument,
- * or with the <code>visible</code> attribute if an argument is not
- * provided.
- *
- * @method _syncVisibility
- * @param {Boolean} visible (optional) Visibility.
- * @protected
- */
- _syncVisibility: function (visible) {
- if (this.get(ALWAYS_SHOW_LIST)) {
- visible = true;
- this.set(VISIBLE, visible);
- }
- if (typeof visible === 'undefined') {
- visible = this.get(VISIBLE);
- }
- this._inputNode.set('aria-expanded', visible);
- this._boundingBox.set('aria-hidden', !visible);
- if (visible) {
- this._syncPosition();
- } else {
- this.set(ACTIVE_ITEM, null);
- this._set(HOVERED_ITEM, null);
- // Force a reflow to work around a glitch in IE6 and 7 where some of
- // the contents of the list will sometimes remain visible after the
- // container is hidden.
- this._boundingBox.get('offsetWidth');
- }
- },
- // -- Protected Event Handlers ---------------------------------------------
- /**
- * Handles <code>activeItemChange</code> events.
- *
- * @method _afterActiveItemChange
- * @param {EventTarget} e
- * @protected
- */
- _afterActiveItemChange: function (e) {
- var inputNode = this._inputNode,
- newVal = e.newVal,
- prevVal = e.prevVal,
- node;
- // The previous item may have disappeared by the time this handler runs,
- // so we need to be careful.
- if (prevVal && prevVal._node) {
- prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]);
- }
- if (newVal) {
- newVal.addClass(this[_CLASS_ITEM_ACTIVE]);
- inputNode.set('aria-activedescendant', newVal.get(ID));
- } else {
- inputNode.removeAttribute('aria-activedescendant');
- }
- if (this.get('scrollIntoView')) {
- node = newVal || inputNode;
- if (!node.inRegion(Y.DOM.viewportRegion(), true)
- || !node.inRegion(this._contentBox, true)) {
- node.scrollIntoView();
- }
- }
- },
- /**
- * Handles <code>alwaysShowListChange</code> events.
- *
- * @method _afterAlwaysShowListChange
- * @param {EventTarget} e
- * @protected
- */
- _afterAlwaysShowListChange: function (e) {
- this.set(VISIBLE, e.newVal || this.get(RESULTS).length > 0);
- },
- /**
- * Handles <code>hoveredItemChange</code> events.
- *
- * @method _afterHoveredItemChange
- * @param {EventTarget} e
- * @protected
- */
- _afterHoveredItemChange: function (e) {
- var newVal = e.newVal,
- prevVal = e.prevVal;
- if (prevVal) {
- prevVal.removeClass(this[_CLASS_ITEM_HOVER]);
- }
- if (newVal) {
- newVal.addClass(this[_CLASS_ITEM_HOVER]);
- }
- },
- /**
- * Handles list blur events.
- *
- * @method _afterListBlur
- * @protected
- */
- _afterListBlur: function () {
- this._listFocused = false;
- // Hide the list unless focus switched to the input node.
- if (!this._listInputFocused) {
- this.hide();
- }
- },
- /**
- * Handles list focus events.
- *
- * @method _afterListFocus
- * @protected
- */
- _afterListFocus: function () {
- this._listFocused = true;
- },
- /**
- * Handles `inputNode` blur events.
- *
- * @method _afterListInputBlur
- * @protected
- */
- _afterListInputBlur: function () {
- this._listInputFocused = false;
- // Hide the list on inputNode blur events, unless the mouse is currently
- // over the list (which indicates that the user is probably interacting
- // with it). The _lastInputKey property comes from the
- // autocomplete-list-keys module.
- if ((!this._mouseOverList && !this._listFocused)
- || this._lastInputKey === KEY_TAB) {
- this.hide();
- }
- },
- /**
- * Handles `inputNode` focus events.
- *
- * @method _afterListInputFocus
- * @protected
- */
- _afterListInputFocus: function () {
- this._listInputFocused = true;
- },
- /**
- * Handles <code>mouseover</code> events.
- *
- * @method _afterMouseOver
- * @param {EventTarget} e
- * @protected
- */
- _afterMouseOver: function (e) {
- var itemNode = e.domEvent.target.ancestor(this[_SELECTOR_ITEM], true);
- this._mouseOverList = true;
- if (itemNode) {
- this._set(HOVERED_ITEM, itemNode);
- }
- },
- /**
- * Handles <code>mouseout</code> events.
- *
- * @method _afterMouseOut
- * @param {EventTarget} e
- * @protected
- */
- _afterMouseOut: function () {
- this._mouseOverList = false;
- this._set(HOVERED_ITEM, null);
- // This takes care of the edge case where the user right-clicks on a
- // list item, then clicks elsewhere in the document.
- if (!this._listFocused && !this._listInputFocused) {
- this.hide();
- }
- },
- /**
- * Handles <code>resultsChange</code> events.
- *
- * @method _afterResultsChange
- * @param {EventFacade} e
- * @protected
- */
- _afterResultsChange: function (e) {
- this._syncResults(e.newVal);
- if (!this.get(ALWAYS_SHOW_LIST)) {
- this.set(VISIBLE, !!e.newVal.length);
- }
- },
- /**
- * Handles <code>visibleChange</code> events.
- *
- * @method _afterVisibleChange
- * @param {EventFacade} e
- * @protected
- */
- _afterVisibleChange: function (e) {
- this._syncVisibility(!!e.newVal);
- },
- /**
- * Delegated event handler for item <code>click</code> events.
- *
- * @method _onItemClick
- * @param {EventTarget} e
- * @protected
- */
- _onItemClick: function (e) {
- var itemNode = e.currentTarget;
- this.set(ACTIVE_ITEM, itemNode);
- this.selectItem(itemNode, e);
- },
- // -- Protected Default Event Handlers -------------------------------------
- /**
- * Default <code>select</code> event handler.
- *
- * @method _defSelectFn
- * @param {EventTarget} e
- * @protected
- */
- _defSelectFn: function (e) {
- var text = e.result.text;
- // TODO: support typeahead completion, etc.
- this._inputNode.focus();
- this._updateValue(text);
- this._ariaSay('item_selected', {item: text});
- this.hide();
- }
- }, {
- ATTRS: {
- /**
- * If <code>true</code>, the first item in the list will be activated by
- * default when the list is initially displayed and when results change.
- *
- * @attribute activateFirstItem
- * @type Boolean
- * @default false
- */
- activateFirstItem: {
- value: false
- },
- /**
- * Item that's currently active, if any. When the user presses enter,
- * this is the item that will be selected.
- *
- * @attribute activeItem
- * @type Node
- */
- activeItem: {
- setter: Y.one,
- value: null
- },
- /**
- * If <code>true</code>, the list will remain visible even when there
- * are no results to display.
- *
- * @attribute alwaysShowList
- * @type Boolean
- * @default false
- */
- alwaysShowList: {
- value: false
- },
- /**
- * If <code>true</code>, keyboard navigation will wrap around to the
- * opposite end of the list when navigating past the first or last item.
- *
- * @attribute circular
- * @type Boolean
- * @default true
- */
- circular: {
- value: true
- },
- /**
- * Item currently being hovered over by the mouse, if any.
- *
- * @attribute hoveredItem
- * @type Node|null
- * @readOnly
- */
- hoveredItem: {
- readOnly: true,
- value: null
- },
- /**
- * Node that will contain result items.
- *
- * @attribute listNode
- * @type Node|null
- * @initOnly
- */
- listNode: {
- writeOnce: 'initOnly',
- value: null
- },
- /**
- * If <code>true</code>, the viewport will be scrolled to ensure that
- * the active list item is visible when necessary.
- *
- * @attribute scrollIntoView
- * @type Boolean
- * @default false
- */
- scrollIntoView: {
- value: false
- },
- /**
- * Translatable strings used by the AutoCompleteList widget.
- *
- * @attribute strings
- * @type Object
- */
- strings: {
- valueFn: function () {
- return Y.Intl.get('autocomplete-list');
- }
- },
- /**
- * If <code>true</code>, pressing the tab key while the list is visible
- * will select the active item, if any.
- *
- * @attribute tabSelect
- * @type Boolean
- * @default true
- */
- tabSelect: {
- value: true
- },
- // The "visible" attribute is documented in Widget.
- visible: {
- value: false
- }
- },
- CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')
- });
- Y.AutoCompleteList = List;
- /**
- * Alias for <a href="AutoCompleteList.html"><code>AutoCompleteList</code></a>.
- * See that class for API docs.
- *
- * @class AutoComplete
- */
- Y.AutoComplete = List;
- }, '3.4.1' ,{lang:['en'], after:['autocomplete-sources'], requires:['autocomplete-base', 'event-resize', 'node-screen', 'selector-css3', 'shim-plugin', 'widget', 'widget-position', 'widget-position-align'], skinnable:true});
|