mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Et2Tabs: Implement et2_IResizable
This commit is contained in:
parent
1ab53dec86
commit
e67c3d6e61
@ -15,9 +15,10 @@ import shoelace from "../../Styles/shoelace";
|
||||
import {et2_createWidget} from "../../et2_core_widget";
|
||||
import {colorsDefStyles} from "../../Styles/colorsDefStyles";
|
||||
import {Et2InputWidget} from "../../Et2InputWidget/Et2InputWidget";
|
||||
import {et2_IResizeable} from "../../et2_core_interfaces";
|
||||
|
||||
|
||||
export class Et2Tabs extends Et2InputWidget(SlTabGroup)
|
||||
export class Et2Tabs extends Et2InputWidget(SlTabGroup) implements et2_IResizeable
|
||||
{
|
||||
static get styles()
|
||||
{
|
||||
@ -484,6 +485,15 @@ export class Et2Tabs extends Et2InputWidget(SlTabGroup)
|
||||
}
|
||||
return super.setActiveTab(<SlTab>tab, options);
|
||||
}
|
||||
|
||||
|
||||
resize(_height)
|
||||
{
|
||||
if(_height)
|
||||
{
|
||||
this.tabHeight = parseInt(this.tabHeight) + parseInt(_height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("et2-tabbox", Et2Tabs);
|
Loading…
Reference in New Issue
Block a user