gd-bs 6.6.57 → 6.6.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/listGroup/item.js +6 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/listGroup/item.ts +7 -0
- package/src/components/listGroup/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -67,6 +67,7 @@ export class ListGroupItem extends Base<IListGroupItem> {
|
|
|
67
67
|
this.el.id = tabId + "-tab";
|
|
68
68
|
this.el.setAttribute("href", "#" + tabId);
|
|
69
69
|
this.el.setAttribute("data-bs-toggle", "list");
|
|
70
|
+
this.el.setAttribute("data-tab-title", this.props.tabName);
|
|
70
71
|
this.el.setAttribute("aria-controls", tabId);
|
|
71
72
|
this.el.innerHTML = this.props.tabName;
|
|
72
73
|
|
|
@@ -97,6 +98,12 @@ export class ListGroupItem extends Base<IListGroupItem> {
|
|
|
97
98
|
this.props.onClick ? this.props.onClick(this.el, this.props) : null;
|
|
98
99
|
});
|
|
99
100
|
|
|
101
|
+
// See if there is a render tab event
|
|
102
|
+
if (this.props.onRenderTab) {
|
|
103
|
+
// Execute the render event
|
|
104
|
+
this.props.onRenderTab(this.el, this.props);
|
|
105
|
+
}
|
|
106
|
+
|
|
100
107
|
// See if there is a render event
|
|
101
108
|
if (this.props.onRender) {
|
|
102
109
|
// Execute the render event
|
|
@@ -84,6 +84,7 @@ export interface IListGroupItem<T=Element> {
|
|
|
84
84
|
isDisabled?: boolean;
|
|
85
85
|
onClick?: (el?: HTMLElement, item?: IListGroupItem) => void;
|
|
86
86
|
onRender?: (el?: HTMLElement, item?: IListGroupItem) => void;
|
|
87
|
+
onRenderTab?: (el?: HTMLElement, item?: IListGroupItem) => void;
|
|
87
88
|
tabName?: string;
|
|
88
89
|
type?: number;
|
|
89
90
|
}
|