All possible templates for buttons that can appear in a dialog.
All possible dialog widget types.
Changes the interface theme. The supplied theme options do not need to be complete; any missing properties will use their standard default values. For example, the following call would switch to the "dark" version of the built-in theme: micd.ui.changeTheme({ sBaseTheme: "dark" })
.
The options for the new theme. Missing options will be filled in with defaults automatically.
Returns a Promise that resolves to an HTMLTableElement for a help table describing available commands and their keyboard shortcuts. An optional template can be used to customize the table contents, such as adding help for custom commands.
An optional template that allows customization and extension of the generated table.
A Promise that resolves to the table, or null
if a callback was supplied.
Returns a new dialog template for a dialog that can create or edit ImageFormatOptions objects. The template can be modified before being shown.
A template with controls that reflect an options value
.
Returns a new dialog template for a dialog that can create or edit LatexFormatOptions objects. The template can be modified before being shown.
A template with controls that reflect an options value
.
Returns a new dialog template for a dialog that can create or edit MmlFormatOptions objects. The template can be modified before being shown.
A template with controls that reflect an options value
.
Returns the bounding rectangle of an element relative to the top left corner of the document. That is, the coordinate system is the same as that used by the pageX
and pageY
properties of input events.
The element to get the bounds of.
The page-relative bounding rectangle.
Provides feedback to the user that a minor error occurred, such as playing a soft "error beep" sound. The exact form(s) of the feedback is determined by the sErrorFeedback theme setting. The effect will be the same as that produced when the user attempts a low-level inapplicable action, such as moving the caret past the end of the document.
Displays a basic dialog box based on the contents of a template.
Note that the dialog box API is meant primarily to meet the needs of the editor itself. It may not be suited to all of your use cases and is not intended to be a complete replacement for a general user interface framework.
The template that defines the structure and logic for the desired dialog.
A Promise that resolves to the template once the dialog is closed.
Displays a basic popup menu based on a template. Only one popup menu can be visible at a time. If a menu is already showing when this is called, it will be cancelled automatically.
The template that defines the structure and logic for the desired dialog.
Briefly displays a feedback message at the bottom of the window. The display time is calculated automatically based on the message length. Clicking a toast dismisses it prematurely. At most one toast is shown at a time; if this is called when a toast is already showing, the new toast will be added to a queue to be shown later.
The text of a message to display.
Returns a Promise that resolves to the root of a tree of HTMLElements that provide a graphic representation of some math content. The content is described by a string using one of three formats: the string value of a Clip, the name of a command that inserts math, or a string of MathML. Note that this is intended mainly to support the construction of user interface elements and might not be suited to more general math display applications.
A string containing a clip, a command name, or MathML.
A Promise that resolves to the root of a tree of HTMLElements that will display the math, or null
if a callback was supplied.
This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.
Auxiliary user interface elements, including dialogs and menus. This is a lightweight toolkit intended primarily for the API's own internal needs. It provides a number of conveniences, including pre-built option dialogs and easy extension of the default context menu. However, using it is entirely optional.