This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| q.ready(function() { | |
| var div = q.create("<div>") | |
| .setHtml("Hello...") | |
| .appendTo(document.body); | |
| div.on("click", function(e) { | |
| div.fadeOut().once("animationEnd", function() { | |
| div.setHtml("... World!"); | |
| div.fadeIn(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qx.Class.define("View", { | |
| extend : qx.ui.core.Widget, | |
| construct : function() { | |
| this.base(arguments); | |
| this._setLayout(new qx.ui.layout.VBox()); | |
| for (var i = 0; i < 10; i++) { | |
| this._add(new qx.ui.form.ListItem()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qx.Class.define("qx.data.controller.Table", { | |
| extend : qx.core.Object, | |
| construct : function(model, target, columns, columnsPaths) { | |
| this.base(arguments); | |
| if (model) { | |
| this.setModel(model); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var listData = []; | |
| for (var i = 0; i < 10; i++) { | |
| listData.push({name: "name " + i, model: "model" + i}); | |
| } | |
| var listModel = qx.data.marshal.Json.createModel(listData); | |
| var selectBox = new qx.ui.form.SelectBox(); | |
| var listControler = new qx.data.controller.List(null, selectBox); | |
| listControler.setDelegate({bindItem: function(c, item, index) { | |
| c.bindProperty("name", "label", null, item, index); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tx = new qx.ui.form.TextField("affe"); | |
| this.getRoot().add(tx); | |
| tx.setLiveUpdate(true); | |
| tx.addListener("changeValue", function(e) { | |
| console.log(e.getData()); | |
| }, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Array Performance</title> | |
| <meta name="author" content="Martin Wittemann"> | |
| <meta name="author" content="Fabian Jakobs"> | |
| <!-- Date: 2010-03-09 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // generator json config file | |
| { | |
| "jobs" : { | |
| "source-script" : { | |
| "compile-options" : { | |
| "code" : { | |
| "decode-uris-plug" : "/Users/mw/.qooxdoo/decode.js" | |
| } | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create a textfield | |
| var textField = new qx.ui.form.TextField("acb"); | |
| this.getRoot().add(textField, {left: 10, top: 10}); | |
| // create a checkbox | |
| var checkBox = new qx.ui.form.CheckBox("box"); | |
| this.getRoot().add(checkBox, {left: 10, top: 40}); | |
| // create a list | |
| var list = new qx.ui.form.List(); |
NewerOlder