Results 1 to 2 of 2

Thread: How to call a function from an html config?

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    148
    Answers
    12

    Default How to call a function from an html config?

    Hello,

    How would I call a function from an html config? Let's say I have a navigation view. It has two children. One of them has an 'html' config with a link in it. When I tap on the link, I want to push the other view on top.

    Code:
    config: {
      items: [
        title: 'About Us',
        html: '<a href="doContact()">Contact Us</a>'
      ]
    },
    
    doContact: function() {
      ...push new view...
    }
    So from the <a> tag of the 'html' config, how can I call the 'doContact()' function.

    Thanks.

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    148
    Answers
    12

    Default

    Never mind. Mind search terms were not up to par. Modifying it, found what I was looking for:

    http://www.sencha.com/forum/showthread.php?237669-Mixing-HTML-Button-and-Sencha-Touch


Posting Permissions

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