Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
XmlComponent: fix withMarkup code sample in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala authored Dec 14, 2023
1 parent bffcdde commit 42ddaa0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/com/feathersui/xml/XmlComponent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ import sys.io.File;
</f:LayoutGroup>'
);
container.addChild(instance);
var okButton = cast(instance.getChildAt(0));
//alternatively, use var okButton = XmlComponent.withMarkup('<f:Button xmlns:f="http://ns.feathersui.com/xml" id="okButton" text="OK"/>');
//then add it to instance
okButton.addEventListener(TriggerEvent.TRIGGER, (event) -> {
instance.okButton.addEventListener(TriggerEvent.TRIGGER, (event) -> {
trace("triggered the OK button");
});
```
Expand Down

0 comments on commit 42ddaa0

Please sign in to comment.