Calling Full screen function from .ts file


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. 

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:

title:"New Tab",
icon:<i class="fab fa-angular"></i>

Hope it was helpful.
WebDataRocks Team