Hints and Blocking
The buttons we created in the last chapter are also useful to demonstrate some builtin
functionality. We will add now five buttons and two placeholders. The new buttons will call the
methods block
, unblock
and hint
of the application instance with different arguments:
apps/custom-buttons.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
Now let's use them in our application:
apps/testing-buttons.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Starting the application you can use the buttons to block the application or show hints in different themes.