HOT-FIX. Добавлены методы создания компонентов и нод внутри компонентов

This commit is contained in:
2020-08-08 21:56:43 +03:00
parent aeb16d45e5
commit 5b9c6a8f94
28 changed files with 99 additions and 73 deletions

View File

@ -1,24 +1,23 @@
import Component from '../component';
import {createElement} from '../../utils/elementUtils';
import './TableCellOverflow.css';
class TableCellOverflow extends Component {
constructor (parentNode, text) {
super(null, parentNode);
const cell = createElement({
const cell = this.createElement({
tagName: 'td',
parentNode: this.mainNode,
});
const div = createElement({
const div = this.createElement({
tagName: 'div',
parentNode: cell,
options: {
className: 'TableCellOverflow__cellWrapper'
}
});
const span = createElement({
const span = this.createElement({
tagName: 'span',
parentNode: div,
options: {