Toolbar images display.

Answered
kumar asked on April 15, 2016

Hi,
We would like to implement expand all/collapse all options in toolbar. I took expand/collapse images from your demo samples but, those does not look similar format of other images like Format, Options etc..please look at screenshot I attached.
I see component is using two kinds of images for toolbar options : 1. 45x45 2. 90x90
Is there any way to download from any path in your portal/provide expand and collapse images(45x45, 90x90) with similar format of other toolbar images?
please let me know.
Thanks & Regards,
Sunilkumar.V

6 answers

Public
Iryna Kulchytska Iryna Kulchytska Flexmonster April 15, 2016

Hi Sunilkumar,
 
You are right, two kinds of images (45×45 and 90×90) are used for toolbar options.
 
The toolbar in the trial package contains all the icons we have for it. There are no icons for expand all/collapse all API options. The idea of the toolbar is that it illustrates the usage of API (part of it) and the toolbar can be changed by our customers the way they want - by removing some option or by adding some. You are free to modify the code of the toolbar as well as its icons. Please feel free to create your own icons for expand all/collapse all options similar to the ones we have or replace all the icons with your own.
 
Kind regards,
Iryna

Public
kumar April 16, 2016

Hi Iryna,
Thank you..!
Thanks & Regards,
Sunilkumar.V

Public
kumar April 18, 2016

Hi,
Expand all and Collapse all can be implemented in layout options window?
it uses setOptions method, Can we pass expand or collapse to this method?
 
Thanks & Regards,
Sunilkumar.V

Public
Ian Sadovy Ian Sadovy Flexmonster April 18, 2016

Hello Sunil, 
 
There is a way to expand all using options as follows:

flexmonster.setOptions({expandAll: true});
flexmonster.refresh();

But, unfortunately, you cannot collapse all using this method.
 
Also, there is no limitation to use setOptions in the Layout Options Windows.
You are free to write a code that will use expandAllData/collapseAllData methods.
Hope this helps.
 
Regards,
Ian
 
 

Public
kumar April 18, 2016

Hi Ian,
Thanks for the clarification.
Thanks & Regards,
Sunilkumar.V

Public
Tanya Gryshko Tanya Gryshko Flexmonster December 5, 2016

Hello Sunilkumar.V and all Flexmonster users,
In version 2.3 we changed the structure of Report Object. expandAll property was moved to slice.expands. JSON report objects of the previous version and XML reports are fully supported in terms of backward compatibility. It means you can open or set reports from the previous major version. Read more about changes of Report Object in our Migration guide.
Regards,
Tanya

Please login or Register to Submit Answer