Forum Home › Forums › Development and Integration › modal develop in mimiceditor
- This topic has 2 replies, 2 voices, and was last updated 5 days ago by
Zeus.
-
AuthorPosts
-
October 29, 2025 at 7:57 am #17234
ZeusParticipantHi
I am developing plugin in mimic.
Is there any way to add new modal without editing code in propGridDialogs?
I want to add modal in plugin used by itself.
// Calls property editors implemented as modal dialogs.
class PropGridDialogs {
static colorModal = null;
static fontModal = null;
static imageModal = null;
static propertyModal = null;
static textEditor = null;
/**新增 */
static svgExtTurbineModal = null;
static fontAwesomeIconModal = null;
static echartColorModal = null;
static bgBorderModal = null;
static bgDecorationModal = null;
static tableDesignerModal = null;// Invokes the callback function.
static _invokeCallback(modalContext, callback) {
if (modalContext.result && callback instanceof Function) {
callback(modalContext.newValue);
}
}// Checks whether an editor for the specified property is supported.
static editorSupported(propertyDescriptor) {
const PropertyEditor = rs.mimic.PropertyEditor;
let editor = propertyDescriptor?.editor;
return editor &&
editor === PropertyEditor.COLOR_DIALOG && PropGridDialogs.colorModal ||
editor === PropertyEditor.FONT_DIALOG && PropGridDialogs.fontModal ||
editor === PropertyEditor.IMAGE_DIALOG && PropGridDialogs.imageModal ||
editor === PropertyEditor.PROPERTY_DIALOG && PropGridDialogs.propertyModal ||
editor === PropertyEditor.TEXT_EDITOR && PropGridDialogs.textEditor ||
/**新增 */
editor === PropertyEditor.SVGEXT_TURBINE_DIALOG && PropGridDialogs.svgExtTurbineModal ||
editor === PropertyEditor.FONTAWESOME_ICON_DIALOG && PropGridDialogs.fontAwesomeIconModal ||
editor === PropertyEditor.ECHART_COLOR_DIALOG && PropGridDialogs.echartColorModal ||
editor === PropertyEditor.BG_BORDER_DIALOG && PropGridDialogs.bgBorderModal ||
editor === PropertyEditor.BG_DECORATION_DIALOG && PropGridDialogs.bgDecorationModal ||
editor === PropertyEditor.TABLE_DESIGNER_DIALOG && PropGridDialogs.tableDesignerModal;
}October 29, 2025 at 11:05 am #17236
MikhailModeratorHi,
It would be useful, but this is not possible for now. I saved the idea and will see what can be done. I plan to return to work on the new editor in January.October 29, 2025 at 1:00 pm #17237
ZeusParticipantHi,
OK I see. Thanks -
AuthorPosts
- You must be logged in to reply to this topic.