Quantcast
Channel: Script – sciter
Viewing all articles
Browse latest Browse all 47

Behaviors, 10 years anniversary.

$
0
0

Just discovered that this article about architecture of behaviors was written 10 years ago and still actual.

It is just that instead of artificial Behavior class you should use Element now:

class ColorChooser: Element {

   this var _value = null;

   function attached() { ... } 
   function detached() { ... }

   event "click|popup td" (evt) {
      // handling click on td in popup
   }

}

Viewing all articles
Browse latest Browse all 47

Trending Articles