Skip to content

Commit e654f26

Browse files
- Dynamic Element Access (Core - Javascript) Implementation.
1 parent 2f6c195 commit e654f26

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/js/validatorNew.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ var jsValidator = {
4141
forceFilter: false,
4242
// To Filter the First load.
4343
initialLoad: true,
44+
// Global options.
45+
option: false,
4446
// Initiating the Validator.
4547
init: function (option) {
4648
jsLogger.table(option);
4749

50+
// To Update global options.
51+
this.option = option;
4852
// Updating the filter flag to global.
4953
this.onlyFilter = option.onlyFilter;
5054
// Update "jsSettings" to global object.
@@ -78,6 +82,18 @@ var jsValidator = {
7882
});
7983
}
8084
},
85+
// To Refresh the DOM and enable Dynamic-Elements to Access.
86+
update: function () {
87+
var option = this.option;
88+
// Updating the filter flag to global.
89+
this.onlyFilter = option.onlyFilter;
90+
// Update "jsSettings" to global object.
91+
this.jsSettings = jsSettings.init(option);
92+
// Update "jsForm" to global object.
93+
this.jsForm = jsForm.init(option);
94+
// Initiate form error setup.
95+
this.jsFormError = jsFormError.init();
96+
},
8197
// To checking all elements from registered form.
8298
check: function () {
8399
var status = false;

0 commit comments

Comments
 (0)