Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update example code
authored
Oct 11, 2023
by
Moritz Brückner
Show whitespace changes
Inline
Side-by-side
Getting-Started.md
View page @
88af373b
...
...
@@ -61,7 +61,6 @@ package;
import
koui.Koui
;
import
koui.elements.
*
;
import
koui.events.Events
;
import
koui.events.MouseEvent.MouseClickEvent
;
class
Main
{
...
...
@@ -78,11 +77,11 @@ class Main {
button
.
addEventListener
(
MouseClickEvent
,
(
e
:
MouseClickEvent
)
->
{
switch
(
e
.
getState
())
{
case
ClickHold
:
button
.
label
=
"Clicking"
;
button
.
text
=
"Clicking"
;
case
ClickEnd
:
button
.
label
=
"Clicked"
;
button
.
text
=
"Clicked"
;
default
:
button
.
label
=
"Click me!"
;
button
.
text
=
"Click me!"
;
}
});
...
...
@@ -125,11 +124,11 @@ class KouiTrait extends iron.Trait {
button
.
addEventListener
(
MouseClickEvent
,
(
e
:
MouseClickEvent
)
->
{
switch
(
e
.
getState
())
{
case
ClickHold
:
button
.
label
=
"Clicking"
;
button
.
text
=
"Clicking"
;
case
ClickEnd
:
button
.
label
=
"Clicked"
;
button
.
text
=
"Clicked"
;
default
:
button
.
label
=
"Click me!"
;
button
.
text
=
"Click me!"
;
}
});
...
...
...
...