2017-06-27 20:38:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2020-03-10 20:53:22 +00:00
|
|
|
<title>electron-tabs-demo</title>
|
2017-06-27 20:38:44 +00:00
|
|
|
</head>
|
|
|
|
<body style="margin:0">
|
|
|
|
|
2022-05-24 08:49:24 +00:00
|
|
|
<tab-group new-tab-button="true" sortable="true">
|
|
|
|
<style>
|
|
|
|
/* Add custom style */
|
|
|
|
.etabs-tab:hover .etabs-tab-title {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</tab-group>
|
2017-06-27 20:38:44 +00:00
|
|
|
|
2022-05-24 21:38:25 +00:00
|
|
|
<script src="../dist/electron-tabs.js"></script>
|
2017-06-27 20:38:44 +00:00
|
|
|
<script>
|
2022-05-23 16:10:29 +00:00
|
|
|
const tabGroup = document.querySelector("tab-group");
|
2022-05-24 08:05:04 +00:00
|
|
|
tabGroup.on("ready", () => console.info("TabGroup is ready"));
|
2022-05-23 17:17:47 +00:00
|
|
|
|
2022-05-23 21:18:52 +00:00
|
|
|
tabGroup.setDefaultTab({
|
|
|
|
title: "Wikipedia",
|
2022-05-23 21:56:22 +00:00
|
|
|
src: "https://www.wikipedia.org/",
|
2022-05-24 08:05:04 +00:00
|
|
|
active: true,
|
|
|
|
ready: () => console.info("New Tab is ready")
|
2022-05-23 17:17:47 +00:00
|
|
|
});
|
2020-02-04 10:13:57 +00:00
|
|
|
|
|
|
|
tabGroup.addTab({
|
2022-05-23 17:17:47 +00:00
|
|
|
title: "electron-tabs on NPM",
|
|
|
|
src: "https://www.npmjs.com/package/electron-tabs",
|
2020-02-04 10:13:57 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tabGroup.addTab({
|
2022-05-23 17:17:47 +00:00
|
|
|
title: "electron-tabs on Github",
|
|
|
|
src: "https://github.com/brrd/electron-tabs",
|
2020-02-04 10:13:57 +00:00
|
|
|
visible: true,
|
|
|
|
active: true
|
|
|
|
});
|
2017-06-27 20:38:44 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|