juliocavalcanti

Resposta.js

Nov 14th, 2012 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Ext.define("Schw.view.Resposta", {
  2.     extend: 'Ext.Container',
  3.     xtype: 'resposta',
  4.  
  5.     config: {
  6.         cls: 'xresposta',
  7.         fullscreen: true,
  8.         layout: 'vbox',
  9.         scrollable: true,
  10.  
  11.         items: [
  12.             {
  13.                 xtype: 'rodape'      
  14.             },
  15.             {
  16.                 xtype : 'toolbar',
  17.                 docked: 'bottom',
  18.                 cls: 'player',
  19.                 height: 68,
  20.                 layout: 'vbox',
  21.                 items: [
  22.                     {
  23.                         xtype: 'spacer',
  24.                         flex: 1
  25.                     },
  26.                     {
  27.                         layout: 'hbox',
  28.                         items: [
  29.                             {
  30.                                 xtype: 'button',
  31.                                 id: 'playbutton',
  32.                                 action: 'playmusic',
  33.                                 width: 100,
  34.                                 height: 50
  35.                             },
  36.                             {
  37.                                 xtype: 'panel',
  38.                                 id: 'player-progressbar',
  39.                                 width: 100,
  40.                                 style: 'text-align:center;',
  41.                                 html: '<div class="progress progress-striped active"><div id="progressbar" class="bar" style="width: 100%;"></div></div>'
  42.                             },
  43.                             {
  44.                                 xtype: 'spacer',
  45.                                 flex: 1
  46.                             }
  47.                         ]
  48.                     },
  49.                     {
  50.                         layout: 'hbox',
  51.                         height: 20,
  52.                         items: [
  53.                             {
  54.                                 xtype: 'spacer',
  55.                                 flex: 1
  56.                             },
  57.                             {
  58.                                 id: 'player-time',
  59.                                 html: '00:00',
  60.                                 width: 50,
  61.                                 style: 'text-align:center;'
  62.                             },
  63.                             {
  64.                                 id: 'time-separator',
  65.                                 html: ' / ',
  66.                                 width: 15,
  67.                                 style: 'text-align:center;'
  68.                             },
  69.                             {
  70.                                 id: 'audio-duration',
  71.                                 html: '00:00',
  72.                                 width: 50,
  73.                                 style: 'text-align:center;'
  74.                             },
  75.                             {
  76.                                 xtype: 'spacer',
  77.                                 flex: 1
  78.                             }
  79.                         ]
  80.                     }
  81.                 ]
  82.             }
  83.         ]            
  84.     }
  85. });
Advertisement
Add Comment
Please, Sign In to add comment