Skip to content

Panel

The Panel functions as another main area to display View Containers.

✔️ Do

  • Render Views in the Panel that benefit from more horizontal space
  • Use for Views that provide supporting functionality

❌ Don't

  • Use for Views that are meant to be always visible since users often minimize the Panel
  • Render custom Webview content that fails to resize/reflow properly when dragged to other View Containers (like the Primary or Secondary Sidebars).

Example of a panel

Panel Toolbar

The Panel Toolbar can expose options scoped to the currently selected View. For example the Terminal view exposes View Actions to add a new terminal, split the view layout, and more. Switching to the Problems view exposes a different set of actions. Similar to the Sidebar Toolbar, the toolbar will only render if there is just a single View. If more than one View is used, each View will render its own toolbar.

✔️ Do

  • Use an existing product icon if available
  • Provide clear, useful tooltips

❌ Don't

  • Don't add an excessive number of icon buttons. Consider using a Context Menu if more options are needed for a specific button.
  • Don't duplicate the default Panel icons (collapse/expand, close, etc.)

Example of a panel toolbar with a single view

In this example, the single View rendered in the Panel renders its View Actions in the main Panel Toolbar.

Example of a panel toolbar with multiple views

In this example, multiple Views are used, so each View exposes its own specific View Actions.

评论区
评论区空空如也
发送评论
名字
0 / 20
邮箱
0 / 100
评论内容
0 / 140
由于是非实名评论,所以不提供删除功能。如果你需要删除你发送的评论,或者是其他人的评论对你造成了困扰,请 发邮件给我 。同时评论区会使用 AI + 人工的方式进行审核,以达到合规要求。

© thebestxt.cc
辽ICP备16009524号-8
本站所有文章版权所有,转载请注明出处