📜  Framework7-侧面板

📅  最后修改于: 2020-10-25 02:48:15             🧑  作者: Mango


描述

侧面板移动到屏幕的左侧或右侧以显示内容。 Framework7允许您在应用程序中最多包含2个面板(右侧面板和左侧面板)。您需要在的开头添加面板,然后通过应用以下列出的类来选择打开效果-

  • panel-reveal-这将使整个应用程序的内容移出。

  • panel-cover-这将使面板覆盖在应用程序的内容上。

例如,以下代码显示了如何使用上述类-


   
panel's content
panel's content

下表显示了Framework77支持的面板类型-

S.No Type & Description
1 Open and Close Panels

Once you add panel and effects, we need to add functionality to open and close the panels.

2 Panel Events

To detect how a user interacts with the panel, you can use panel events.

3 Open Panels With Swipe

Framework7 provides you the feature to open panel with swipe gesture.

4 Panel is Opened?

We can determine whether panel is opened or not by using the with-panel[position]-[effect] rule.