@websy/websy-designs 1.11.9 → 1.11.10
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.
|
@@ -273,6 +273,9 @@ class ButtonGroup {
|
|
|
273
273
|
this.options.activeItem = -1
|
|
274
274
|
event.target.classList.remove('active')
|
|
275
275
|
}
|
|
276
|
+
if (this.options.onClick) {
|
|
277
|
+
this.options.onClick(this.options.items[index], index, event, this)
|
|
278
|
+
}
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
on (event, fn) {
|
|
@@ -5295,6 +5298,9 @@ class WebsyRouter {
|
|
|
5295
5298
|
if (this.options.views[view].load) {
|
|
5296
5299
|
this.options.views[view].load(callbackFn)
|
|
5297
5300
|
}
|
|
5301
|
+
else if (callbackFn) {
|
|
5302
|
+
callbackFn()
|
|
5303
|
+
}
|
|
5298
5304
|
}
|
|
5299
5305
|
initView (view) {
|
|
5300
5306
|
return new Promise((resolve, reject) => {
|
package/dist/websy-designs.js
CHANGED
|
@@ -313,6 +313,9 @@ var ButtonGroup = /*#__PURE__*/function () {
|
|
|
313
313
|
this.options.activeItem = -1;
|
|
314
314
|
event.target.classList.remove('active');
|
|
315
315
|
}
|
|
316
|
+
if (this.options.onClick) {
|
|
317
|
+
this.options.onClick(this.options.items[index], index, event, this);
|
|
318
|
+
}
|
|
316
319
|
}
|
|
317
320
|
}
|
|
318
321
|
}, {
|
|
@@ -5102,6 +5105,8 @@ var WebsyRouter = /*#__PURE__*/function () {
|
|
|
5102
5105
|
value: function preloadView(view, callbackFn) {
|
|
5103
5106
|
if (this.options.views[view].load) {
|
|
5104
5107
|
this.options.views[view].load(callbackFn);
|
|
5108
|
+
} else if (callbackFn) {
|
|
5109
|
+
callbackFn();
|
|
5105
5110
|
}
|
|
5106
5111
|
}
|
|
5107
5112
|
}, {
|