We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.

Calling Full screen function from .ts file

Resolved

Can we call full screen function from .ts file? without help of any button click

3 answers

WebDataRocks Team WebDataRocks August 16, 2018

Hi Rama!
That is not possible due to browser’s security restrictions.
You can call the full-screen function only in the context of a user-initiated action. 
Thanks

Ramarkishna August 16, 2018

Can I call this function by using my own icon, I am using material icons in my application so I want to use material icons instead of toolbar icons. Can I do tool bar actions with my material icons?

WebDataRocks Team WebDataRocks August 17, 2018

Hello, Rama,
You can set your custom icons for tabs. When specifying icon property in tab object, just set HTML tag that contains your custom icon for this tab:

tabs.unshift({
id:"wdr-tab-newtab",
title:"New Tab",
handler:newtabHandler,
icon:<i class="fab fa-angular"></i>
});

Hope it was helpful.
Regards,
WebDataRocks Team