define('application/widgets/onboarding/bullets', [
'rofl/widgets/horizontallist',
'application/widgets/pointerfocusablebutton'
], function (
HorizontalList,
Button
) {
'use strict';
return HorizontalList.extend({
/**
* Initializes the Container.
*
* @param {Object} initParams - Initial params.
*/
init: function init (initParams) {
var itemsCount,
i = 0,
indicator;
init.base.call(this);
this._isFocusable = initParams.isFocusable;
itemsCount = initParams.count;
if (itemsCount) {
for (; i < itemsCount; i++) {
indicator = new Button();
indicator.addClass('indicator');
this.appendChildWidget(indicator);
}
this.addClass('indicators');
}
},
/**
* Returns true if carousel is focusable.
*
* @returns {boolean} - True if is focusable.
*/
isFocusable: function () {
return false;
}
});
});