table
table copied to clipboard
Table caption
How can I add a Caption field to a table component?
I think we should extend the plugin and add input tag at the bottom of the container. I did it like below but I don't know how to re-render the UI
`
export default class CustomTable extends Table {
constructor({ api, data, block, readonly, config }) {
super({ api, data, block, readonly, config });
this.render();
this.caption();
}
caption() {
if (this.table) {
const input = document.createElement("input");
input.value = "Some Caption";
console.log(this.table.wrapper);
}
}
}
`
any suggestion or guide would be appreciated !
#139 waiting to review my pull request by Codex team