Allow tabs to have tooltips
This commit is contained in:
parent
92ddea3627
commit
a712142ec0
|
@ -50,15 +50,17 @@ import { hrefTo } from 'consul-ui/helpers/href-to';
|
||||||
export class Tab {
|
export class Tab {
|
||||||
@tracked route;
|
@tracked route;
|
||||||
@tracked label;
|
@tracked label;
|
||||||
|
@tracked tooltip;
|
||||||
@tracked currentRouteName;
|
@tracked currentRouteName;
|
||||||
|
|
||||||
constructor(opts) {
|
constructor(opts) {
|
||||||
const { currentRouteName, route, label, owner } = opts;
|
const { currentRouteName, route, label, tooltip, owner } = opts;
|
||||||
|
|
||||||
this.currentRouteName = currentRouteName;
|
this.currentRouteName = currentRouteName;
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
this.route = route;
|
this.route = route;
|
||||||
this.label = label;
|
this.label = label;
|
||||||
|
this.tooltip = tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
get selected() {
|
get selected() {
|
||||||
|
|
Loading…
Reference in New Issue