import { MelHtml } from './js/MelHtml.js';
MelHtml.start
.div({class:'table table-striped table-hover table-bordered'}).css({height:'400px', 'max-height':'400px'})
.row()
.col_4().text('Nom').end()
.col_4().text('Prénom').end()
.col_4().text('Age').end()
.end()
.row()
.col_4().text('Doe').end()
.col_4().text('John').end()
.col_4().text('25').end()
.end()
.row()
.col_4().text('Doe').end()
.col_4().text('Jane').end()
.col_4().text('22').end()
.end()
.end().generate().appendTo($('#parent'));
MelHtml.start
.input_button({class:'mel-button', value:'CLIQUE !', onclick:() => {
MelHtml.start
.row({class:'added'})
.col_4()
.input_text({placeholder:'Nom'})
.end()
.col_4()
.input_text({placeholder:'Prénom'})
.end()
.col_4()
.input_number({value:5})
.end()
.end().generate().appendTo($('.table'));
}}).generate().appendTo($('#parent').parent());