Crop toolbar

Posted by: moshek on 1 April 2024, 1:17 am EST

  • Posted 1 April 2024, 1:17 am EST

    I use ImageViewer in mobile devise.

    How can i hide tools from Crop toolbar. I need only ok / cancel button.

  • Posted 2 April 2024, 6:29 am EST

    Hello Moshek,

    For that, we need to hide the other options using CSS. Please refer to the following demo sample and refer to the styles.css:

    https://jscodemine.mescius.io/share/RgGAZcIzB0Ocb4G8tb6ZKg/

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 2 April 2024, 9:15 am EST

    Thanks

    How can i set layout of PaintToolsPlugin ?

  • Posted 3 April 2024, 12:06 am EST

    Hello,

    We are not sure how you would like to set the layout for PaintToolsPugin. But if you would like to hide the other options for PaintToolsPugin. We may do this it same as for crop options. Please refer to the same sample shared previously, we have updated the same sample with the following CSS:

    .gc-second-toolbar-panel.gc-paint-panel .field-row{ 
        display: none;
    }
    .gc-second-toolbar-panel.gc-paint-panel .gc-toolbar__splitter{
        display: none;
    }

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 3 April 2024, 3:32 am EST

    I mean that I need to display juast some of the tools in the second toolbar.

    In PageToolsPlugin i can set : new PageToolsPlugin({ toolbarLayout: [“crop-image”, “rotate-image”] });

    But how i set toolbarLayout to PaintToolsPlugin ?

  • Posted 8 April 2024, 11:48 pm EST

    Any answer?

  • Posted 10 April 2024, 3:27 am EST

    Hello Moshek,

    We tried the same and investigated for PaintToolsPlugin same as PageToolsPlugin but there is no toolbarlayout property for PaintToolsPlugin.

    Please refer to the documentation:

    https://developer.mescius.com/document-solutions/javascript-image-viewer/api/README#painttoolspluginoptions

    We have shared this request with the concerned team with internal tracking id: DOC-6174

    We will let you know as we get an update on this.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels