Skip to content

Commit 6a24e0f

Browse files
committed
Update build files
1 parent 5b5dd79 commit 6a24e0f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

public/cui.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38932,6 +38932,13 @@ CUI.DataForm = (function(superClass) {
3893238932
has_add_button: {
3893338933
check: Boolean,
3893438934
"default": false
38935+
},
38936+
no_default_empty_row: {
38937+
check: Boolean,
38938+
"default": false
38939+
},
38940+
enableAddButton: {
38941+
check: Function
3893538942
}
3893638943
});
3893738944
this.removeOpt("onNodeAdd");
@@ -39024,6 +39031,12 @@ CUI.DataForm = (function(superClass) {
3902439031
})) {
3902539032
return this.__addButton.disable();
3902639033
} else {
39034+
if (this._enableAddButton) {
39035+
if (!this._enableAddButton(this, this.rows)) {
39036+
this.__addButton.disable();
39037+
return;
39038+
}
39039+
}
3902739040
return this.__addButton.enable();
3902839041
}
3902939042
};
@@ -39102,10 +39115,12 @@ CUI.DataForm = (function(superClass) {
3910239115
row = ref[i];
3910339116
this.__appendRow(row);
3910439117
}
39105-
if (this.rows.length > 0) {
39118+
if (this.rows.length > 0 || this._no_default_empty_row) {
3910639119
this.__updateAddButton();
3910739120
}
39108-
this.__appendNewRow();
39121+
if (!this._no_default_empty_row) {
39122+
this.__appendNewRow();
39123+
}
3910939124
this.__updateButtons();
3911039125
};
3911139126

public/cui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)