VulpesOS/gaia/apps/search/js/providers/grid_provider.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

33 lines
506 B
JavaScript
Executable file

/* global Provider */
'use strict';
function DataGridProvider() {
}
DataGridProvider.prototype = {
__proto__: Provider.prototype,
name: 'DataGridProvider',
isGridProvider: true,
init: function() {
this.grid = document.getElementById('icons');
},
clear: function() {
this.grid.clear();
},
render: function(results) {
results.forEach(function(config, index) {
this.grid.add(config.data);
}, this);
this.grid.render({
skipDivider: true
});
}
};