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-23 16:10:29 +00:00
|
|
|
<tab-group></tab-group>
|
2017-06-27 20:38:44 +00:00
|
|
|
|
2022-05-23 16:46:45 +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");
|
|
|
|
tabGroup.newTab = {
|
|
|
|
title: "New Tab"
|
|
|
|
}
|
2020-02-04 10:13:57 +00:00
|
|
|
|
|
|
|
tabGroup.addTab({
|
|
|
|
title: 'Google',
|
|
|
|
src: 'http://google.com',
|
|
|
|
});
|
|
|
|
|
|
|
|
tabGroup.addTab({
|
|
|
|
title: "Electron",
|
|
|
|
src: "http://electron.atom.io",
|
|
|
|
visible: true,
|
|
|
|
active: true
|
|
|
|
});
|
2017-06-27 20:38:44 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|