Simulate "tabs" with Wirecloud

I am working with wirecloud platform and I would like to know the following:

1.- Is it possible to dynamically change the width and height of the widget?

2.- Is it possible to populate the panel with widgets and actions dynamically?

Both questions focus on creating a menu (widget) where users can click and change between different tabs.

Any help or idea would be much appreciated.

EDIT 06/08/15

I can answer the second question: NO. As I can see in this request , the ability to add / remove widgets is not dynamically available, although it is believed that in future versions of the platform, the next question is when will it be available?

EDIT 13/08/15

I expected to use:

MashupPlatform.widget.drawAttention();

      

can cause tabs to change but no luck.

EDIT 27/08/15

Finally, we found a workaround. We are using the iFrame property with which you can access the parent document. From there, we can read the elements representing the tabs and generate their clicks as we see fit.

+3


source to share


1 answer


Support for adding widgets and operators will be dynamically added in version 0.8.0, you can experiment with this feature if you install WireCloud from the development branch on github . We are working on improving the documentation and polishing it for a new version at the end of September.

While this is great, you found it working with the iframe property to navigate between tabs :), I recommend that you request the addition of such a feature using WireCloud Issue Tracking ; -).



PD MashupPlatform.widget.drawAttention();

needs some fixes, but the idea is to provide some visual highlight to the widgets so that the user knows there are updates in the widget. Something similar to the way google guouts use green to indicate that the chat has new messages.

0


source







All Articles