@print-one/grapesjs
Version:
Free and Open Source Web Builder Framework
21 lines (17 loc) • 445 B
text/typescript
import Component from './Component';
import { toLowerCase } from '../../utils/mixins';
const tagName = 'tr';
export default class ComponentTableRow extends Component {
get defaults() {
return {
// @ts-ignore
...super.defaults,
tagName,
draggable: ['thead', 'tbody', 'tfoot'],
droppable: ['th', 'td'],
};
}
static isComponent(el: HTMLElement) {
return toLowerCase(el.tagName) === tagName;
}
}