You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
569 B
21 lines
569 B
define([ |
|
"doh", |
|
"dojo/Stateful", |
|
"dojox/mvc/at", |
|
"dijit/form/TextBox" |
|
], function(doh, Stateful, at, TextBox){ |
|
doh.register("dojox.mvc.tests.doh.wildcard", [ |
|
function wildcard(){ |
|
var m0 = new Stateful({"placeHolder": "placeHolder0", "value": "Value0"}), |
|
m1 = new Stateful({"placeHolder": "placeHolder1", "value": "Value1"}), |
|
w = new TextBox({ |
|
"*": at(m1, "*"), |
|
"placeHolder": at(m0, "placeHolder") |
|
}, document.createElement("div")); |
|
|
|
w.startup(); |
|
|
|
doh.is("Value1", w.textbox.value, "Widget's value should come from m1"); |
|
} |
|
]); |
|
});
|
|
|