I'm trying to bind a label of a textfield basing on a condition. So looks like i should use 'formulas'. I'm trying a simple example but binding does not work. I'm using Extjs 6.2.1 modern toolkit
Ext.define('Class', {
extend: 'Ext.Container',
formulas: {
secondString: function (get) {
var test = 'test';
return test;
}
},
items: [
{
xtype: 'fieldset',
title: 'title',
items: [
{
xtype: 'textfield',
label: 'first string',
bind: {
label: '{secondString}'
}
}
]
}
]
});