[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/webroot/rsrc/js/application/uiexample/ -> ReactorRadioExample.js (source)

   1  /**
   2   * @provides phabricator-uiexample-reactor-radio
   3   * @requires javelin-install
   4   *           javelin-dom
   5   *           javelin-reactor-dom
   6   */
   7  
   8  JX.install('ReactorRadioExample', {
   9    extend: 'View',
  10    members: {
  11      render: function() {
  12        var radio_one = JX.$N('input', {type: 'radio', name: 'n', value: 'one'});
  13        var radio_two = JX.$N('input', {type: 'radio', name: 'n', value: 'two'});
  14  
  15        radio_one.checked = true;
  16  
  17        return [
  18          radio_one,
  19          radio_two,
  20          JX.RDOM.$DT(JX.RDOM.radio([radio_one, radio_two]))
  21        ];
  22      }
  23    }
  24  });


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1