mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 01:12:41 +01:00
21 lines
516 B
JavaScript
21 lines
516 B
JavaScript
|
/**
|
||
|
* @provides phabricator-uiexample-reactor-sendclass
|
||
|
* @requires javelin-install
|
||
|
* javelin-view
|
||
|
* javelin-util
|
||
|
* javelin-dom
|
||
|
* javelin-reactor-dom
|
||
|
*/
|
||
|
|
||
|
JX.install('ReactorSendClassExample', {
|
||
|
extend: 'View',
|
||
|
members: {
|
||
|
render: function(rendered_children) {
|
||
|
var input = JX.$N('input', { type: 'checkbox' });
|
||
|
var span = JX.$N('a', 'Hey');
|
||
|
JX.RDOM.sendClass(JX.RDOM.checkbox(input), span, 'disabled');
|
||
|
return [input, span];
|
||
|
}
|
||
|
}
|
||
|
});
|