2017-09-22 16 views
-1

extjs 3.4의 레이아웃 창 안에 폼을 만드는 데 도움을 줄 수 있습니까? like this? Ext.Formpanel을 사용해 보았지만 오류가 표시됩니다.extjs의 레이아웃 창 안의 폼 패널 3.4

Ext.onReady(function() { 
    // tabs for the center 
    var tabs = new Ext.TabPanel({ 
     region: 'center', 
     margins: '3 3 3 0', 
     activeTab: 0, 
     defaults: { 
      autoScroll: true 
     }, 
     items: [ 
      { 
       title: 'Movie Grid', 
      }, 
      { 
       title: 'Movie Description', 
      }, 
      { 
       title: 'Nested layout', 
      }, 
      { 
       title: 'The bomb', 
      } 
     ] 
    }); 

    // Panel for the west 
    var nav = new Ext.Panel({ 
     title: 'Movie Information Form', 
     region: 'west', 
     split: true, 
     width: 200, 
     collapsible: true, 
     margins: '3 0 3 3', 
     cmargins: '3 3 3 3', 
    }); 

    var win = new Ext.Window({ 
     title: 'Button', 
     closable: true, 
     width: 600, 
     height: 350, 
     //border: false, 
     plain: true, 
     layout: 'border', 
     items: [ 
      nav, 
      tabs 
     ] 
    }); 

    win.show(this); 
}); 

이것은 레이아웃 창을 만들기위한 js 파일입니다. "영화 정보 양식"안에 양식을 만들어야합니다.

+0

표시되는 오류는 무엇입니까? – MarthyM

+0

SyntaxError : missing : after property id var simple = new Ext.FormPanel ( –

+0

코드에서 어딘가에 ':'가 누락되었거나 다른 구문 오류가 발생했습니다 – MarthyM

답변

1

코드에 오류가 있습니다. & 답장을 확인하십시오. https://fiddle.sencha.com/#view/editor&fiddle/2750

나는 을 제거하여 show() window에 전달되었습니다.

+0

무엇을 했습니까? – MarthyM

+0

그녀는 show()에이 매개 변수를 전달하여 브라우저의 윈도우 객체 인 것처럼 깨뜨 렸습니다. 다른 코드는 제거되었으므로 몇 개의 레이블을 추가했습니다 .. – Tejas

+0

해결책을 편집 해주세요. 솔루션에 대한 정보가 충분하지 않습니다. – MarthyM