ExtJS: Ext.LayoutDialog Gotchas Extjs : ext.layoutdialog gotchas
After much debugging I realized that in creating dialogs using Ext.LayoutDialog class of ExtJS library we must specify the configuration for east, west, north and south properties, as required, in the LayoutDialog config (see below for more requirements, details and a working example). وبعد الكثير من تصحيح الأخطاء ادركت ان في خلق حوارات باستخدام ext.layoutdialog فئة من extjs المكتبه ونحن يجب ان تحدد للتشكيل الشرق ، والغرب والشمال والجنوب الممتلكات ، حسب الاقتضاء ، في اعداد layoutdialog (أنظر أدناه لمزيد من الاحتياجات ، وتفاصيل عمل مثلا). This should be done before you add the content panels to the layout of the dialog. وينبغي ان يتم ذلك قبل ان تقوم باضافه محتوى الافرقه إلى نسق من الحوار. Otherwise you will get some really hard to debug errors. والا سوف تحصل على بعض من الصعب حقا تصحيح الاخطاء.
Within the configuration you must at least specify the initialSize property for all the sections that it requires at the minimum to render. في اطار الاعداد يجب ان يحدد على الاقل initialsize الممتلكات لجميع الاقسام انه يتطلب في الحد الادنى لتقديمها. For example I omitted the initialSize for the center panel because it can still render with the specified size for the east panel as the total width is already known. فعلى سبيل المثال انني اغفلت initialsize لمركز الفريق لانه ما زال يمكن ان يجعل مع حجم معين للشرق الفريق العرض الكلي وكما هو معروف بالفعل. However you need to specify the initialSize for the north column for it to render. ولكن عليك ان تحدد initialsize بالنسبة للشمال العمود لانه يقدم الى الهيءه.
Interestingly they work fine, without specifying anything, the second time around which makes it even harder to debug. ومن المثير انها تعمل جيدا ، دون تحديد اي شيء ، والمرة الثانية حول ما يجعل من الاصعب على التصحيح. Let's work with an example: دعنا العمل مع فعلى سبيل المثال :
multiValueChooser = new Ext.LayoutDialog('dialog', { modal: true, animate: true, width: 300, height: 200, shadow: true, minWidth:300, minHeight:200, proxyDrag: true, resizable: true, north: { initialSize: 25 }, east: { split:true, initialSize: 50, minSize: 50, maxSize: 50, titlebar: false, collapsible: true, animate: true }, center: { autoScroll:true } }); multivaluechooser = ext.layoutdialog جديدة ( 'الحوار' ، (وسائط النقل : صحيح ، تحريك : صحيح ، العرض : 300 ، الطول : 200 ، الظل : صحيح ، minwidth : 300 ، minheight : 200 ، proxydrag : صحيح ، كبير ثانية : صحيح ، الشمال : (Initialsize : 25) ، الشرقية : (سبليت : صحيح ، initialsize : 50 ، minsize : 50 ، maxsize : 50 ، titlebar : كاذبة ، قابل للانهيار : صحيح ، تحريك : صحيح) ، مركز : (autoscroll : صحيح))) ؛ You must, for example specify the bolded sections before you add the relevant ExtContentPanel to the Layout as below: يجب عليك ، على سبيل المثال تحدد بالخط العريض الابواب امامكم extcontentpanel ذات الصلة اضافة الى تصميم على النحو التالي :
layout.beginUpdate(); layout.add('north', new Ext.ContentPanel('north', {title: 'North'})); layout.add('east', new Ext.ContentPanel('east', {title: 'East'})); layout.add('center', new Ext.ContentPanel('center', {title: 'Center'})); layout.endUpdate(); layout.beginupdate () ؛ layout.add ( 'الشمال' ، ext.contentpanel جديدة ( 'الشمال' ، (العنوان : 'شمال'}))؛ layout.add ( 'الشرقية' ، ext.contentpanel جديدة ( 'الشرقية' ، (العنوان : 'شرق'}))؛ layout.add ( 'المركز' ، ext.contentpanel جديدة ( 'المركز' ، (العنوان : 'مركز'}))؛ layout.endupdate () ؛ Filed under المقدم بمقتضى Ajax أجاكس , ، Browser المتصفح , ، Enterprise Software المشاريع والبرامج , ، Headline News أهم الانباء , ، How To كيف , ، Javascript جافا سكريبت , ، Programming البرمجه , ، Web شبكة , ، Web 2.0 الويب 2،0 , ، Web Services خدمات الشبكه العالمية | |
| |
RSS 2.0 ار اس اس 2،0 | |
Trackback this Article | هذه المادة |
Email this Article ارسل هذه المادة
You may also like to read ويمكنك ايضا ان تقرأ |



































