VulpesOS/gaia/tv_apps/smart-settings/js/settings_group.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

27 lines
787 B
JavaScript
Executable file

'use strict';
/* global SettingsList */
(function(exports) {
function SettingsGroup() {
var self = this;
this.bindSelf();
this.on('itemChoosed', function translateItemToGroup(data) {
self.fire('groupChoosed', data.dom.dataset.group);
});
}
var proto = SettingsGroup.prototype = new SettingsList();
proto.setActive = function sg_setActive(active) {
// no matter activate or not, we should reselect the dom node.
this.selectionBorder.select(this.spatialNavigation.getFocusedElement());
};
proto.init = function sg_init(dom, lazyDOMId) {
this.container = dom;
SettingsList.prototype.init.apply(this,
[document.getElementById(lazyDOMId)]);
};
exports.SettingsGroup = SettingsGroup;
})(window);