UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

51 lines (37 loc) 1.08 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Sebastian Werner (wpbasti) * Fabian Jakobs (fjakobs) ************************************************************************ */ /** * @tag noPlayground */ qx.Class.define("qxl.demobrowser.demo.bom.AttributeStyle_2", { extend : qx.application.Native, members : { main: function() { this.base(arguments); var chk = qx.dom.Element.create("input", { type : "checkbox", checked : true, id : "chk" }); document.body.appendChild(chk); var lab = qx.dom.Element.create("label", { "for" : "chk" }); qx.bom.element.Attribute.set(lab, "text", "Checkbox #1"); document.body.appendChild(lab); } } });