Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding not working #5

Open
kimosabi77 opened this issue Feb 3, 2018 · 1 comment
Open

Binding not working #5

kimosabi77 opened this issue Feb 3, 2018 · 1 comment

Comments

@kimosabi77
Copy link

Binding value works on the way in, but not out back to the viewmodel.

I created a workaround, as the publishes: 'value' wasn't working.

Ext.define('Ext.field.TagField', {
.......
   xvalue:null,

   /**
    * @cfg publishes
    * @inheritdoc
    */
   defaultBindProperty: 'xvalue',
   publishes: 'xvalue',
....

then in onSelect and onDeselect, add these after this.validate();

this.setXvalue(this.getValue());

After I did that, binding working fine.

Related fiddle i found the workaround from - https://fiddle.sencha.com/#view/editor&fiddle/1t1e

@magda26
Copy link

magda26 commented Sep 17, 2018

How could that be done in modern toolkit 6.5.2 - Triton with many fields ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants