📅  最后修改于: 2021-01-02 05:44:50             🧑  作者: Mango
Framework7侧面板用于在屏幕的左侧或右侧移动以显示内容。在Framework7中,您的应用程序中最多可以包含2个面板(右侧面板和左侧面板)。在的开头添加面板,然后通过应用以下类来选择打开效果:
panel-reveal:此类用于使整个应用程序的内容移出。
panel-cover:此类用于使面板覆盖在应用程序的内容上。
句法
panel's content
panel's content
以下是Framework7支持的面板类型的列表:
Index | 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. |