javascript - Retriving values and passing values between HTML and extjs View -


is there way retriving values , passing values between html , extjs view?

an example in html

<input id="text" type="text" value="book" style="width:80%" /><br /> 

in view

var win = ext.create('ext.window.window', {      items: {      // created windows need codes call html passing values, , after retrieve data html , getting values        id: text;       }  } 

the flow want change input value book newbook. view code , return values html again. possible? in advance!

sure that's possible. can take @ ext.select, shorthand of ext.dom.element.select. selector creates composite element, can data etc.

var els = ext.select("#some-el div.some-class", true); // or select directly existing element var el = ext.get('some-el'); el.select('div.some-class', true);  els.setwidth(100); // elements become 100 width els.hide(true); // elements fade out , hide // or els.setwidth(100).hide(true); 

in case mean use:
var els = ext.select("#text", true);

if want change text property of item on view can use ext.componentquery. like:
ext.componentquery.query('#text')[0].settext('new value');


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -