Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
applyTheme() {
if (this.theme) {
if (typeof this.theme === 'string') {
Grid.applyTheme(this.theme);
} else {
Grid.applyTheme(this.theme.name, this.theme.value);
}
}
},
// @deprecated. You should use it via importing tui-grid directly.
applyTheme() {
if (this.theme) {
if (typeof this.theme === 'string') {
Grid.applyTheme(this.theme);
} else {
Grid.applyTheme(this.theme.name, this.theme.value);
}
}
},
// @deprecated. You should use it via importing tui-grid directly.
const Story = () => {
TuiGrid.applyTheme(theme);
return ;
};
const Story = () => {
TuiGrid.applyTheme(theme);
return ;
};
setLanguage() {
if (this.language) {
if (typeof this.language === 'string') {
Grid.setLanguage(this.language);
} else {
Grid.setLanguage(this.language.name, this.language.value);
}
}
},
getRootElement() {
setLanguage() {
if (this.language) {
if (typeof this.language === 'string') {
Grid.setLanguage(this.language);
} else {
Grid.setLanguage(this.language.name, this.language.value);
}
}
},
getRootElement() {
const Story = () => {
TuiGrid.setLanguage(lang);
return ;
};
const Story = () => {
TuiGrid.setLanguage(lang);
return ;
};
componentDidMount() {
const {
frozenColumnCount: frozenCount = 0,
columnOptions: columnOptionsProp = {}
} = this.props;
const columnOptions = {
...columnOptionsProp,
frozenCount
};
this.gridInst = new TuiGrid({
el: this.rootEl.current,
...this.props,
columnOptions
});
this.bindEventHandlers(this.props);
}
componentDidMount() {
this.gridInst = new TuiGrid({
el: this.rootEl.current,
...this.props
});
this.bindEventHandlers(this.props);
}