#10733 closed defect (fixed)
RadioButton cannot take attribute label
Reported by: | David Moore | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Dijit - Form | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I am trying to put a dijit.form.RadioButton? into a dojox.layout.TableContainer?, all created programmatically. To get a field displaying, I need to set the "label" attribute on the RadioButton?. An error is thrown on that. After tracing down, this is because setting label on RadioButton? sets the innerHTML of the containerNode, and containerNode is null. I created the RadioButton? with the following code:
var required = dijit.byId(cell.name+"_required"); if (!required) { required = new dijit.form.RadioButton({id: cell.name+"_required", name: "required", "label": "Required" }); }
Change History (4)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
You could also just use "title" rather than "label" for the RadioButton attribute.
But I'll checkin a fix.
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [21351]) Don't fail if app specifies a label for a dijit.form.CheckBox. Although label doesn't mean anything to CheckBox itself, it's referenced by dojox.layout.TableContainer (with a dijit.form.CheckBox child).
Also removing label from dijit.form.Button.attributeMap, since Button has a _setLabelAttr() method.
Fixes #10733 !strict.
comment:4 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
I worked around the issue with the following code (clearly showing that the issue is the containerNode):