table icon indicating copy to clipboard operation
table copied to clipboard

Table caption

Open geo903 opened this issue 3 years ago • 2 comments

How can I add a Caption field to a table component?

geo903 avatar Feb 06 '22 15:02 geo903

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 !

hamidKMB avatar Nov 07 '23 16:11 hamidKMB

#139 waiting to review my pull request by Codex team

hamidKMB avatar Nov 08 '23 18:11 hamidKMB