Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 5, 2023 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/2cae41cf4f7c295e8326d3b98f733876 to your computer and use it in GitHub Desktop.
Save bjoerntx/2cae41cf4f7c295e8326d3b98f733876 to your computer and use it in GitHub Desktop.
export function insertTable() {
TXTextControl.tables.add(5, 5, 10, function (e) {
if (e === true) { // if added
TXTextControl.tables.getItem(function (table) {
table.cells.forEach(function (cell) {
cell.setText("Cell text");
});
}, null, 10);
}
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment