updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//import { Ut } from ".";
|
||||
import { Ut } from ".";
|
||||
|
||||
export class AppendOptions {
|
||||
|
||||
@@ -7,19 +7,9 @@ export class AppendOptions {
|
||||
opts = opts || {};
|
||||
|
||||
if (opts.clear) {
|
||||
this.dxHtml('');
|
||||
this.replaceChildren();
|
||||
}
|
||||
|
||||
if (typeof data === 'string') {
|
||||
Object.entries(JSON.parse(data)).forEach(([k, v]) => target.append(new Option(v, k)));
|
||||
}
|
||||
else {
|
||||
|
||||
for (let id in data) {
|
||||
target.append(new Option(data[id], id));
|
||||
Ut.each(Ut.isStr(data) ? JSON.parse(data) : data, (val, id) => target.append(new Option(val, id)) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Ut.extendNodeUx(AppendOptions);
|
||||
@@ -56,5 +56,3 @@ export class Form extends FormValidator {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Form);
|
||||
@@ -123,5 +123,3 @@ export class Options {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Options);
|
||||
@@ -221,5 +221,3 @@ export class FormValidator extends Validator {
|
||||
this.target.dxRemoveData('form');
|
||||
}
|
||||
}
|
||||
|
||||
// Ut.extendNodeUx(FormValidator);
|
||||
@@ -41,5 +41,3 @@ export class InputError {
|
||||
this.fieldWrapper.dxFind('.sp-label-error')?.remove();
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(InputError);
|
||||
@@ -321,5 +321,3 @@ export class Autocomplete {
|
||||
Ut.trigger(this.opts.onDestroy, this);
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Autocomplete);
|
||||
@@ -67,5 +67,3 @@ export class Cancelable {
|
||||
return this.target;
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Cancelable);
|
||||
@@ -1124,5 +1124,3 @@ export class DatePicker {
|
||||
return this.target;
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(DatePicker);
|
||||
@@ -177,5 +177,3 @@ export class Dropdown {
|
||||
return this.target;
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Dropdown);
|
||||
@@ -323,5 +323,3 @@ export class Lightbox {
|
||||
this.target.dxRemoveData('lightbox');
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Lightbox);
|
||||
@@ -125,5 +125,3 @@ export class PinBox {
|
||||
Ut.trigger(this.opts.destroy, this);
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(PinBox);
|
||||
@@ -178,5 +178,3 @@ export class Alert {
|
||||
new Popover(target, msg, { color: 'red', timeout: 3000 });
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Popover, Alert);
|
||||
@@ -244,5 +244,3 @@ export class Popup {
|
||||
this.card.ui.dxCss({ top: '-25%', opacity: 0 });
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Popup);
|
||||
@@ -648,5 +648,3 @@ export class Table {
|
||||
this.toolbarFooter.dxHtml(content);
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Table);
|
||||
@@ -294,5 +294,3 @@ export class TwoDatePicker {
|
||||
Stack.delete(this);
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(TwoDatePicker);
|
||||
@@ -696,5 +696,3 @@ export class Uploader {
|
||||
Ut.trigger(this.events.destroy, this)
|
||||
}
|
||||
}
|
||||
|
||||
//Ut.extendNodeUx(Uploader);
|
||||
Reference in New Issue
Block a user