grapesjs-clot
Version:
Free and Open Source Web Builder Framework
19 lines (16 loc) • 387 B
JavaScript
import Component from './Component';
import { toLowerCase } from 'utils/mixins';
const tagName = 'tr';
export default Component.extend(
{
defaults: {
...Component.prototype.defaults,
tagName,
draggable: ['thead', 'tbody', 'tfoot'],
droppable: ['th', 'td']
}
},
{
isComponent: el => toLowerCase(el.tagName) === tagName
}
);