Menubar.Help.js 573 B

123456789101112131415161718192021222324252627282930
  1. Menubar.Help = function ( signals ) {
  2. var container = new UI.Panel();
  3. container.setClass( 'menu' );
  4. var title = new UI.Panel();
  5. title.setTextContent( 'Help' ).setColor( '#666' );
  6. title.setMargin( '0px' );
  7. title.setPadding( '8px' );
  8. container.add( title );
  9. //
  10. var options = new UI.Panel();
  11. options.setClass( 'options' );
  12. container.add( options );
  13. // about
  14. var option = new UI.Panel();
  15. option.setClass( 'option' );
  16. option.setTextContent( 'About' );
  17. option.onClick( function () { alert( 'About' ) } );
  18. options.add( option );
  19. //
  20. return container;
  21. }
粤ICP备19079148号