2 Replies Latest reply on Sep 10, 2013 11:06 PM by AYS. HAKKIM

    Can we add method using handler in ScripUI resource string?

    AYS. HAKKIM Level 1

      Hi

       

      I've created a sample window using scriptUI, which has buttons; As far as I know we can add handler method by external like

       

      button.onClick = function(){}

       

      but can we add handler to a button in resource string something like this?

       

      b1: Button { text: 'OK', onClick: sayHello }

      function sayHello() { .. }

       

      many thanks

      ~ Ays.Hakkim