如何拆分绑定字符串 ExtJS

How to split binding string ExtJS

如果她绑定,我如何分割字符串并获得长度? 我试过了,但显示的值为空:

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

您可以使用formulas to put more logic in it. And about your question, here's the FIDDLE