Code Box¶
CodeBox edits the inner text of its bound XPath with the code editor. Mode selects editor language support: JavaScript (default), XQuery, Html, or StyleSheet. Size controls the design-time editor height: Small, Medium, Big, and Large map to 400, 550, 750, and 1000 pixels respectively.
Definitions and Arguments¶
Definitions supplies editor definitions for code assistance. Arguments and Name identify the code block for the feature that consumes it; the editor does not itself execute the entered code.
The widget is read-only when disabled and synchronizes editor changes to the bound node. Editing JavaScript, XQuery, HTML, or stylesheets in a form does not by itself grant permission to run the code; execution, validation, and authorization belong to the consuming feature.
Example¶
1 2 3 4 5 6 7 8 9 | |