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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.57",
3
+ "version": "6.6.58",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -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
  }