2011-09-07 23:01:13 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-uiexample-reactor-sendproperties
|
|
|
|
* @requires javelin-install
|
|
|
|
* javelin-dom
|
|
|
|
* javelin-reactor-dom
|
|
|
|
*/
|
|
|
|
|
|
|
|
JX.install('ReactorSendPropertiesExample', {
|
|
|
|
extend: 'View',
|
|
|
|
members: {
|
2014-06-23 19:27:47 +02:00
|
|
|
render: function() {
|
2011-09-07 23:01:13 +02:00
|
|
|
var color = JX.$N('input', {value: '#fff000'});
|
|
|
|
var title = JX.$N('input', {value: 'seen on hover'});
|
|
|
|
var target = JX.$N('span', 'Change my color and title');
|
|
|
|
|
|
|
|
JX.RDOM.sendProps(target, {
|
|
|
|
style: {
|
|
|
|
backgroundColor: JX.RDOM.input(color)
|
|
|
|
},
|
|
|
|
title: JX.RDOM.input(title)
|
|
|
|
});
|
|
|
|
|
|
|
|
return [color, title, target];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|