When is it advisable to use an ion panel?

This is a fairly simple question.

After viewing the documentation for the ion panel , it indicates:

A simple container that is suitable for content without side effects. Adds an element class to an element.

What does this mean when it indicates “no side effects”? What are the options for using an ion panel?

+5
source share
2 answers

Honestly, I had never used an ion panel before, but this question intrigued me, so I went looking. It seems, and you can see on this Codepen: http://codepen.io/anon/pen/JGwJKv?editors=1010 , if the content is too large (if you try to resize the browser window to very small), this will not show. Against ion-content , which will add scrollbars and allow you to use ion-refresher and some other parameters (clicking on the scroll delegate, etc.).

So, to be honest, I never came across the need for such a precedent, so I probably would never have used an ion panel. The lack of documentation about this seems to suggest the same ...

+5
source

I really used it for the first time in an application where I had dynamic divs that were supposed to fill the screen without adding scrollbars. Switching from ion-content to ion-pane helped.

0
source

Source: https://habr.com/ru/post/1242733/


All Articles