Jadelet Example Garden

7GUIs Counter

Here is a Jadelet implementation of the 7GUIs counter interface. https://github.com/eugenkiss/7guis/wiki#counter

The task is to build a frame containing a label or read-only textfield T and a button B. Initially, the value in T is “0” and each click of B increases the value in T by one.

Counter serves as a gentle introduction to the basics of the language, paradigm and toolkit for one of the simplest GUI applications. Thus, by comparing Counter implementations one can clearly see what basic scaffolding is needed and how the very basic features work together to build a GUI application. A good solution will have very minimal scaffolding.

  input(@value readonly="")
  button(@click) Count
{Observable} = Jadelet

h1Element = Template
  value: Observable 0
  click: ->