@mhmdaljefri/revogrid
Version:
Virtual reactive data grid component - RevoGrid.
14 lines (13 loc) • 391 B
JavaScript
import { setMode } from '@stencil/core';
import ThemeService from '../themeManager/themeService';
setMode(elm => {
let theme = elm.theme || elm.getAttribute('theme');
if (typeof theme === 'string') {
theme = theme.trim();
}
const parsedTheme = ThemeService.getTheme(theme);
if (parsedTheme !== theme) {
elm.setAttribute('theme', parsedTheme);
}
return parsedTheme;
});