Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @:build(haxe.ui.macros.ComponentMacros.build("assets/preview.xml"))
- class PreviewPanel extends Component {
- public function new() {
- super();
- }
- public function updatePreview(xmlString:String) {
- var c = Toolkit.componentFromString(xmlString);
- c.ready();
- previewContainer.removeAllComponents();
- previewContainer.addComponent(c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement