mirror of https://github.com/artf/grapesjs.git
1 changed files with 6 additions and 3 deletions
@ -1,16 +1,19 @@ |
|||
import ComponentTableBody from './ComponentTableBody'; |
|||
import { toLowerCase } from 'utils/mixins'; |
|||
import { toLowerCase } from '../../utils/mixins'; |
|||
|
|||
const type = 'thead'; |
|||
|
|||
export default class ComponentTableHead extends ComponentTableBody { |
|||
get defaults() { |
|||
return { |
|||
// @ts-ignore
|
|||
...super.defaults, |
|||
type, |
|||
tagName: type, |
|||
}; |
|||
} |
|||
} |
|||
|
|||
ComponentTableHead.isComponent = el => toLowerCase(el.tagName) === type; |
|||
static isComponent(el: HTMLElement) { |
|||
return toLowerCase(el.tagName) === type; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue