gd-bs 6.6.13 → 6.6.15

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/index.html CHANGED
@@ -61,13 +61,14 @@
61
61
  items.push({
62
62
  data: i,
63
63
  text: "Item " + i,
64
+ title: "This is " + i + " for the item.",
64
65
  value: i
65
66
  });
66
67
  }
67
68
  window["cb_ddl"] = GD.Components.Dropdown({
68
69
  el: document.getElementById("dev"),
69
70
  items: items,
70
- isCheckbox: true,
71
+ isCheckbox: false,
71
72
  multi: true,
72
73
  label: "CB Dropdown"
73
74
  });
@@ -360,18 +361,23 @@
360
361
  description: "This is a single dropdown option.",
361
362
  items: [{
362
363
  text: "Test 1",
364
+ title: "This is the first item.",
363
365
  value: 1
364
366
  }, {
365
367
  text: "Test 2",
368
+ title: "This is the second item.",
366
369
  value: 2
367
370
  }, {
368
371
  text: "Test 3",
372
+ title: "This is the third item.",
369
373
  value: 3
370
374
  }, {
371
375
  text: "Test 4",
376
+ title: "This is the fourth item.",
372
377
  value: 4
373
378
  }, {
374
379
  text: "Test 5",
380
+ title: "This is the fifth item.",
375
381
  value: 5,
376
382
  isDisabled: true
377
383
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.13",
3
+ "version": "6.6.15",
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 DropdownFormItem {
41
41
  this._el.className = this._props.className || "";
42
42
  this._el.disabled = this._props.isDisabled ? true : false;
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
 
45
46
  // See if the item is selected
46
47
  if (this._props.isSelected) {
@@ -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
  }