Get Free Trial
Get Free Trial

Fullscreen button

Bilguun asked on January 10, 2020

Hello Dear Flexmonster team,
How can i show fullscreen button mobile devices

1 answer

Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 10, 2020

Thank you for reaching out to us.
The desired result can be achieved through customizing the Toolbar.
The customization function has to look similar to the following:

function customizeToolbar(toolbar) {
    var tabs = toolbar.getTabs();
    toolbar.getTabs = function () {
        for(var tab of tabs)
            if( != undefined && == 'fm-tab-fullscreen')
       = true;
    return tabs;

The function has to be entailed by the beforetoolbarcreated event in the following way:

beforetoolbarcreated: customizeToolbar

More information about how to customize the Toolbar: the Toolbar customization.
More about the beforetoolbarcreated event by the link.
We hope it works for you.
Feel free to contact us in case any additional questions occur.
Best regards,

Please login or Register to Submit Answer