mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Documentation: insert electron-tabs.css
This commit is contained in:
parent
3d002db73c
commit
ff4cdf3b6b
15
README.md
15
README.md
|
@ -14,11 +14,13 @@ $ npm install --save electron-tabs
|
|||
|
||||
## Usage
|
||||
|
||||
Add the following elements in the page HTML:
|
||||
Add the following elements to the app page:
|
||||
|
||||
```html
|
||||
<div class="etabs-tabs"></div>
|
||||
<div class="etabs-buttons"></div>
|
||||
<div class="etabs-tabgroup">
|
||||
<div class="etabs-tabs"></div>
|
||||
<div class="etabs-buttons"></div>
|
||||
</div>
|
||||
<div class="etabs-views"></div>
|
||||
```
|
||||
|
||||
|
@ -39,6 +41,12 @@ let tab = tabGroup.addTab({
|
|||
});
|
||||
```
|
||||
|
||||
If you don't want to write your own styles, you can also insert the sample electron-tabs stylesheet in the page header:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="node_modules/electron-tabs/electron-tabs.css">
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Tab Group
|
||||
|
@ -141,7 +149,6 @@ The following events are available:
|
|||
* `tab.on("unflash", (tab) => { ... });`
|
||||
* `tab.on("close", (tab) => { ... });`
|
||||
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT) - Copyright (c) 2016 Thomas Brouard
|
||||
|
|
Loading…
Reference in a new issue