Results 1 to 2 of 2

Thread: View model binding inside a template

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    25

    Default Answered: View model binding inside a template

    Is there any support for binding inside an Ext.Template to a property of the view model. I saw the Ext.app.TemplateBinding but there is not much information.

    For instance, I have a component with tpl: '... {someViewModelProperty} ...'.

    Basically I want to put an expression in my template that will establish a binding to my view model.

    Thanks!

  2. No, you would need to use the data property on the component, there's no direct binding.

  3. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254
    Answers
    759

    Default

    No, you would need to use the data property on the component, there's no direct binding.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •