import { ControlsCommon , StructureContent , randomName } from './controls.common' ; export class SectionContent implements StructureContent { label : string ; name : string ; fields : Array < any > = [ ] ; type : string = 'section' ; constructor ( ) { this . type = 'section' ; this . name = randomName ( this . type ) ; this . label = 'Section' ; } } export class SectionControl extends ControlsCommon { name = 'section' ; label = 'Section' ; icon = 'fas fa-object-group' ; dndType : string = 'sections' ; public content ( ) { return new SectionContent ( ) ; } }