Add local page example in demo

This commit is contained in:
Thomas Brouard 2022-05-25 14:51:16 +02:00
parent 7669877a31
commit 5cf43abea8
2 changed files with 17 additions and 1 deletions

View file

@ -40,10 +40,13 @@
title: "electron-tabs on Github", title: "electron-tabs on Github",
src: "https://github.com/brrd/electron-tabs", src: "https://github.com/brrd/electron-tabs",
iconURL: "mark-github.svg", iconURL: "mark-github.svg",
visible: true,
active: true active: true
}); });
tabGroup.addTab({
title: "Local Page",
src: "page.html"
});
</script> </script>
</body> </body>
</html> </html>

13
demo/page.html Normal file
View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Local Page</title>
</head>
<body>
<h1>Hello World!</h1>
<p>This is a local page.</p>
</body>
</html>