Created
October 5, 2023 13:55
-
-
Save bjoerntx/2cae41cf4f7c295e8326d3b98f733876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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