gd-bs 6.6.13 → 6.6.14

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.13",
3
+ "version": "6.6.14",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -40,7 +40,7 @@ export class CheckboxItem {
40
40
  this._elCheckbox.required = this._parent.required ? true : false;
41
41
 
42
42
  // Default the title property for the checkbox
43
- this._elCheckbox.title = this.props.label || this._parent.title || "";
43
+ this._elCheckbox.title = this.props.title || this.props.label || this._parent.title || "";
44
44
  }
45
45
 
46
46
  // See if we are rendering a row
@@ -81,6 +81,7 @@ export interface ICheckboxGroupItem {
81
81
  label?: string;
82
82
  name?: string;
83
83
  onChange?: (item: ICheckboxGroupItem, ev?: Event) => void;
84
+ title?: string;
84
85
  type?: number;
85
86
  }
86
87
 
@@ -41,6 +41,7 @@ export class DropdownItem {
41
41
  this._el.classList.add("dropdown-header");
42
42
  this._props.isDisabled ? this._el.classList.add("disabled") : null;
43
43
  this._el.innerText = this._props.text == null ? "" : this._props.text;
44
+ this._props.title ? this._el.title = this._props.title : null;
44
45
  } else {
45
46
  // See if we are rendering this in a nav bar
46
47
  if (this._parent.navFl) {
@@ -50,6 +51,7 @@ export class DropdownItem {
50
51
  this._elLink.classList.add("dropdown-item");
51
52
  this._props.isDisabled ? this._elLink.classList.add("disabled") : null;
52
53
  this._props.target ? this._elLink.setAttribute("data-bs-target", this._props.target) : null;
54
+ this._props.title ? this._elLink.title = this._props.title : null;
53
55
  this._props.toggle ? this._elLink.setAttribute("data-bs-toggle", this._props.toggle) : null;
54
56
  this._elLink.href = this._props.href || "#";
55
57
  this._elLink.innerText = this._props.text == null ? "" : this._props.text;
@@ -64,6 +66,7 @@ export class DropdownItem {
64
66
  this._elLink.classList.add("dropdown-item");
65
67
  this._props.isDisabled ? this._elLink.classList.add("disabled") : null;
66
68
  this._props.target ? this._elLink.setAttribute("data-bs-target", this._props.target) : null;
69
+ this._props.title ? this._elLink.title = this._props.title : null;
67
70
  this._props.toggle ? this._elLink.setAttribute("data-bs-toggle", this._props.toggle) : null;
68
71
  this._elLink.href = this._props.href || "#";
69
72
  this._elLink.innerText = this._props.text == null ? "" : this._props.text;
@@ -125,6 +125,7 @@ export interface IDropdownItem {
125
125
  onRender?: (el: HTMLElement, item?: IDropdownItem) => void;
126
126
  target?: string;
127
127
  text?: string;
128
+ title?: string;
128
129
  toggle?: string;
129
130
  value?: string;
130
131
  }