first commit

This commit is contained in:
2025-11-25 01:21:34 +02:00
commit 4af0db8263
84 changed files with 18906 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
//import { Ut } from ".";
export class AppendOptions {
constructor(target, data, opts) {
opts = opts || {};
if (opts.clear) {
this.dxHtml('');
}
if (typeof data === 'string') {
if (data == '{}') {
return this;
}
data.slice(1).slice(0, -1).split(',').forEach(function(token) {
let option = token.split(':').map(function(a) {
return a.slice(1).slice(0, -1);
});
target.append(new Option(option[1], option[0]));
});
}
else {
for (let id in data) {
target.append(new Option(data[id], id));
}
}
}
}
// Ut.extendNodeUx(AppendOptions);