mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-22 19:43:53 +00:00
Add tab.hasClass() method
This commit is contained in:
parent
16d13ed95d
commit
a15110a2bb
|
@ -196,6 +196,10 @@ Toggle the "visible" class on the tab. `tab.hide()` is an alias to `tab.show(fal
|
|||
|
||||
Toggle the "flash" class on the tab. `tab.unflash()` is an alias to `tab.flash(false)`.
|
||||
|
||||
#### `tab.hasClass(classname)`
|
||||
|
||||
Return `true` if the tab element has the specified classname. Useful for checking if a tab is "active", "visible" of "flash".
|
||||
|
||||
#### `tab.close(force)`
|
||||
|
||||
Close the tab (and activate another tab if relevant). When `force` is set to `true` the tab will be closed even if it is not `closable`.
|
||||
|
|
Loading…
Reference in a new issue