Description Usage Arguments Details
Function to create a cancel button to be rendered in a Data Table.
1 | cancel_button_creator(index, .ns)
|
index |
The index of the Data Table row that the button will be placed in. |
.ns |
The namespace function that should be applied to the button's ID. |
The function returns the cancel button as raw HTML with a JavaScript statement embedded. Using raw HTML + JavaScript allows us to embed the button directly into a DataTable object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.