0
我想用選項卡式界面構建一個簡單的Electron應用程序。乍一看Photon-kit看起來很容易使用。我可以顯示選項卡,但我無法弄清楚如何在選項卡中顯示任何內容。我一直無法在網上找到展示如何添加內容的例子。如何使用photonkit將內容放入電子標籤?
如果有人能指點我一個例子,我會感激它,或者如果它不是太複雜修改我一直在試驗的代碼,告訴我它是如何完成的。
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="./css/photon.min.css">
<!-- Javascript -->
<!--<script src="js/menu.js" charset="utf-8"></script> -->
</head>
<body>
<div class="window">
<!-- .toolbar-header sits at the top of your app -->
<header class="toolbar toolbar-header">
<h1 class="Test"</h1>
</header>
<div class="tab-group">
<div class="tab-item active">
<span class="icon icon-cancel icon-close-tab"></span>
Tab1
</div>
<div class="tab-item">
<span class="icon icon-cancel icon-close-tab"></span>
Tab2
</div>
<div class="tab-item">
<span class="icon icon-cancel icon-close-tab"></span>
Tab3
</div>
</div>
<!-- Your app's content goes inside .window-content -->
</body>
</html>
的問候,吉姆