modal develop in mimiceditor

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.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17234
    Zeus
    Participant

    Hi
    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;
    }

    #17236
    Mikhail
    Moderator

    Hi,
    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.

    #17237
    Zeus
    Participant

    Hi,
    OK I see. Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.