footer
Since: UXP v3.0
The <footer>
element is used in dialogs to help align buttons to the right-side of a dialog. You aren't required to use this element, and you can override any styles if you so choose.
See: https://developer.mozilla.org/en/docs/Web/HTML/Element/footer
Example
Copied to your clipboard1<dialog>2 <form method="dialog">3 <sp-heading>A heading</sp-heading>4 <sp-divider size="large"></sp-divider>5 <sp-body>Hello!</sp-body>6 <footer>7 <sp-button>Close</sp-button>8 </footer>9 </form>10</dialog>
Copied to your clipboarddocument.querySelector("dialog").uxpShowModal({size: {width: 480, height: 360}});