Etemplate: Replace resetDirty(), it's needed for IInput interface

This commit is contained in:
nathangray 2020-07-02 11:19:11 -06:00
parent 7278b30ff0
commit e80c118aa8
2 changed files with 13 additions and 0 deletions

View File

@ -567,6 +567,12 @@ var et2_toolbar = /** @class */ (function (_super) {
et2_toolbar.prototype.isDirty = function () {
return false;
};
/**
* Causes the dirty flag to be reseted.
*/
et2_toolbar.prototype.resetDirty = function () {
this.value = null;
};
/**
* Checks the data to see if it is valid, as far as the client side can tell.
* Return true if it's not possible to tell on the client side, because the server

View File

@ -698,6 +698,13 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput
return false;
}
/**
* Causes the dirty flag to be reseted.
*/
resetDirty()
{
this.value = null;
}
/**
* Checks the data to see if it is valid, as far as the client side can tell.