Get Free Trial
Get Free Trial

Fullscreen button

Answered
Bilguun asked on January 10, 2020

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

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 10, 2020

Hello,
 
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(tab.id != undefined && tab.id == 'fm-tab-fullscreen')
                tab.mobile = 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,
Illia

Please login or Register to Submit Answer