mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
38 lines
714 B
HTML
38 lines
714 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>electron-tabs-demo</title>
|
|
</head>
|
|
<body style="margin:0">
|
|
|
|
<tab-group></tab-group>
|
|
|
|
<script src="../dist/electron-tabs.js"></script>
|
|
<script>
|
|
const tabGroup = document.querySelector("tab-group");
|
|
|
|
// TODO: fix this
|
|
// newTab must be defined when the component is created ("add" button visibility)
|
|
tabGroup.setNewTab({
|
|
title: "New Tab"
|
|
});
|
|
|
|
tabGroup.addTab({
|
|
title: "electron-tabs on NPM",
|
|
src: "https://www.npmjs.com/package/electron-tabs",
|
|
});
|
|
|
|
tabGroup.addTab({
|
|
title: "electron-tabs on Github",
|
|
src: "https://github.com/brrd/electron-tabs",
|
|
visible: true,
|
|
active: true
|
|
});
|
|
|
|
tabGroup.addTab({});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|