Search code examples
javascriptextjsextjs6-classic

How to split binding string ExtJS


How can I split string and get length if she bind? I tried this, but displayed value is empty:

{
        xtype: 'displayfield',
        fieldLabel: __('sending_to'),
        bind: {
            value: '{recipients.split("\n").length}'
        }
}

Solution

  • You can use formulas to put more logic in it. And about your question, here's the FIDDLE