DataItem.isNew() 추가

master
mjkhan21 4 months ago
parent 8e701ed8cb
commit 4ce057fe6b

@ -248,6 +248,16 @@ class DataItem {
return ["removed", "ignore"].includes(this.state);
}
/**Returns whether the user data is created and not saved yet.
* @returns {boolean}
* <ul><li>true if the user data is new</li>
* <li>false otherwise</li>
* </ul>
*/
isNew() {
return "added" == this.state;
}
/**Toggles the selection status.
* @returns {boolean} current selection status
* <ul><li>true if the user data is selected</li>

Loading…
Cancel
Save