HOT-FIX. Добавлены методы создания компонентов и нод внутри компонентов
This commit is contained in:
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user