gd-bs 6.6.14 → 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:
|
|
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
|
@@ -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) {
|