Created
September 20, 2012 09:24
-
-
Save gabriel403/3754883 to your computer and use it in GitHub Desktop.
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
| define(["dojo/_base/declare", "dojo/_base/lang", "dojo/dom-construct", "dijit/_WidgetBase"], | |
| function(declare, lang, domConstruct, _WidgetBase){ | |
| return declare("Fieldset", [_WidgetBase], { | |
| container: null, | |
| legend: '', | |
| fieldsetTag: 'fieldset', | |
| legendTag: 'legend', | |
| buildRendering: function(){ | |
| this.domNode = domConstruct.create(this.fieldsetTag, {id: this.id}); | |
| domConstruct.create(this.legendTag, {'innerHTML': this.legend}, this.domNode); | |
| } | |
| }); | |
| }); |
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 cont = new Fieldset({legend: 'test'}).placeAt(dom.byId("TreeAnswerEditContainer")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment