How we can pass the value from one extended view to another extend view with in single extension.

“We can pass the value from one extended view to another extended view within a single extension by passing the value to ‘this’. Here, we use the ‘afterViewRender’ function to assign the value. First, we define this function, and then we can set the value to the variable in ‘this’.”

var dataObject=18.5;
console.log('thistop',this)
this.on('afterViewRender', function () {
this.model.attributes.summary.estimatedshipping=dataObject;
							this.model.attributes.summary.estimatedshipping_fromatted=dataObject;
							

})

After that we can get the value in another extended view.

Leave a comment

Your email address will not be published. Required fields are marked *