You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can fully customize the WinBox window layout by providing a custom `template` via the config during creation. This way you can add new controls to the window or re-arrange them.
1298
+
You can fully customize the WinBox window layout by providing a custom `template` via the config during creation. This way you can add new elements to the window or re-arrange them.
1299
1299
1300
-
This example will add two custom control buttons `.wb-like` and`.wb-custom` to the window toolbar by using a custom template along some CSS:
1300
+
This example will add a control button`.wb-custom` to the window toolbar by using a custom template along some CSS:
1301
1301
```css
1302
1302
.wb-custom {
1303
1303
background-image: url(demo/icon-github.svg);
@@ -1310,7 +1310,7 @@ Create by using a custom template:
1310
1310
consttemplate=document.createElement("div");
1311
1311
template.innerHTML=`
1312
1312
<divclass=wb-header>
1313
-
<divclass=wb-icon>
1313
+
<divclass=wb-control>
1314
1314
<spanclass=wb-custom></span>
1315
1315
<spanclass=wb-close></span>
1316
1316
</div>
@@ -1352,7 +1352,7 @@ Modify a specific icon:
1352
1352
1353
1353
Use black standard icons (useful for bright backgrounds):
1354
1354
```css
1355
-
.wb-icon { filter: invert(1) }
1355
+
.wb-control { filter: invert(1) }
1356
1356
```
1357
1357
1358
1358
Modify or disable resizing areas on the window borders:
@@ -1394,7 +1394,7 @@ Style the header title:
1394
1394
1395
1395
Style the titlebar icon:
1396
1396
```css
1397
-
.wb-image {
1397
+
.wb-icon {
1398
1398
width: 35px;
1399
1399
background-size: 35px35px;
1400
1400
}
@@ -1475,10 +1475,10 @@ Apply styles when window is in "focus" state:
1475
1475
.winbox.focus {
1476
1476
background: #0050ff;
1477
1477
}
1478
-
.winbox.wb-icon {
1478
+
.winbox.wb-control {
1479
1479
display: none;
1480
1480
}
1481
-
.winbox.focus.wb-icon {
1481
+
.winbox.focus.wb-control {
1482
1482
display: block;
1483
1483
}
1484
1484
```
@@ -1488,7 +1488,7 @@ Apply styles when window is NOT in "focus" state (the same logic from example ab
0 commit comments