2015-04-20 4 views
1

Привет У меня есть поля формы, и я пытаюсь добавить подсказку. Но это не работает. Это мои поля,extjs 3.4 добавить подсказку инструмента из поля

var importForm = new Ext.form.FormPanel({ 
      //html: "<p>Imgae source: <b>img</b> folder in root directory</p>", 
      url: '/plugin/ImageImport/admin/import', 
      monitorValid: true, 
      labelWidth: 175, 
      frame: true, 
      title: 'Image Import', 
      width: 250, 
      defaultType: 'textfield', 
      defaults: { allowBlank: false }, 
      items:[ 
       { fieldLabel: 'Source Folder Path', name: 'imgSourcePath', id:'imgSourcePath' }, 
       { 
        xtype: 'combo', 
        name: 'folderId', 
        fieldLabel: 'Target Folder', 
        mode: 'local', 
        store: valuesDir, 
        displayField:'key', 
        valueField: 'id', 
        width: 'auto', 
        triggerAction: 'all', 
        emptyText:'Select Folder...', 
        id:'folderId', 
        selectOnFocus:true, 
        allowBlank: false, 
        editable: false, 
       }, 

       { 
        xtype: 'combo', 
        name: 'transformation', 
        fieldLabel: 'Image Transformations', 
        mode: 'local', 
        store: values, 
        displayField:'name', 
        valueField: 'name', 
        width: 'auto', 
        triggerAction: 'all', 
        emptyText:'Select Transformation...', 
        id:'transformation', 
        selectOnFocus:true, 
        allowBlank: false, 
        editable: false, 

       }, 


        ], 

И в конце моего кода я пытаюсь добавить всплывающую подсказку

Ext.onReady(function(){ 
    new Ext.ToolTip({ 
    target: 'imgSourcePath', 
    html: 'A very simple tooltip' 
     }); 

new Ext.ToolTip({ 
    target: 'folderId', 
    html: 'A very simple tooltip' 
     }); 

new Ext.ToolTip({ 
    target: 'transformation', 
    html: 'A very simple tooltip' 
     }); 

Ext.QuickTips.init(); 
}); 

я пытался QTIP как хорошо, но что также не working.like,

{ fieldLabel: 'Source Folder Path', name: 'imgSourcePath', id:'imgSourcePath', qtip: 'This is tool tip' }, 

Пожалуйста, помогите мне кто-то ...

+0

http://stackoverflow.com/a/29675846/3688026 –

ответ

Смежные вопросы