Usage
For full documentation, including architectural concepts and a getting started guide, see the Developing Modals in Invision confluence page.
Note: Dialogs & Modals have undergone evolutionary changes since the beginning of Invision. If modeling new instances off existing ones, be sure to make all necessary changes to adhere to the latest documented patterns.
- dialog-title: The title for the dialog header.
- dialog-size: Sets the size of the dialog. Options include "tiny", "small", "medium", "large", "huge", and "custom".
- dialog-type: Sets the type of the dialog. Options include "content", and "form". If no type is defined, a warning is logged to the console.
- dialog-class: (string) Include any classes in the main dialog element which uses class "t-dialog", and "c-dialog".
- icon-glyph: (string) What icon to display in the header (if any).
- is-flush: (boolean) Whether the content of the dialog should be flush.
- hide-close: (boolean) Whether to hide the close "x" button.
- fixed-height: Set a fixed height for the dialog. Specify a css value (px, rem, em, etc.).
- fixed-width: Set a fixed width for the dialog. Specify a css value (px, rem, em, etc.).
- on-close: (function) Logic that needs to be called when the dialog closes.