HM-71. Доработки таблицы логов. Универсальной таблице добавлена возможность переопределять рендер строк и заголовков (#31)
This commit is contained in:
18
src/components/table/RowCol.js
Normal file
18
src/components/table/RowCol.js
Normal file
@ -0,0 +1,18 @@
|
||||
import Component from '../component';
|
||||
import {createElement} from '../../utils/elementUtils';
|
||||
|
||||
class RowCol extends Component {
|
||||
constructor (parentNode, text) {
|
||||
super(null, parentNode);
|
||||
|
||||
createElement({
|
||||
tagName: 'td',
|
||||
parentNode: this.mainNode,
|
||||
options: {
|
||||
innerHTML: text,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default RowCol;
|
||||
Reference in New Issue
Block a user