class SectionHead { constructor(parent, df) { this.parent = parent; this.df = df || {}; this.make(); } make() { this.wrapper = $(`
`).appendTo(this.parent); let header_section = $( `
`, ).appendTo(this.wrapper); if (this.df.title) { header_section.append(`
${this.df.title || ''}
`); } if (this.df.button) { let action_button = $( `
`, ).appendTo(header_section); action_button.append(` { this.df.button.onclick(); }); } } if (this.df.description) { this.wrapper.append(`

${this.df.description || ''}

`); } } }