PDA

View Full Version : Till tip for fileupload window icon



smruti_patra
16 Dec 2010, 3:36 AM
Hi,
I am using FileUploadField.js plugin for file upload functionality. I want to provide the toll tip for the browse icon.I am using the following code but the tooltip is not coming.


xtype: 'fileuploadfield',
id: 'form-file',
emptyText: 'Select a file',
fieldLabel: 'File',
name: 'userfile',
buttonCfg: {
text: '',
tooltip: {text: 'Choose a file'},
iconCls: 'upload-icon'
}

Could you please let me know how can i fix this issue?

Thanks,
Smruti

msinn
16 Dec 2010, 2:57 PM
try tooltip: 'Choose a file'

and did you initialize the singleton class QuickTips?
Ext.QuickTips.init();

smruti_patra
19 Dec 2010, 10:54 PM
I have tried with tooltip:'Choose a file'. That is not working. I have already inlcuded Ext.QuickTips.init(); in on ready function.

I am also tried with the text button the tooltip is not coming.

Could you please help me?

Thanks,
Smruti Ranjan Patra

msinn
19 Dec 2010, 11:22 PM
jit should work:


buttonCfg: {
text: '',
tootipType: 'qtip',
tooltip: 'Choose a file',
iconCls: 'upload-icon'
}

take a look at http://dev.sencha.com/deploy/dev/docs/?class=Ext.Button&member=tooltip

or post a showchase (http://www.sencha.com/learn/Ext_Forum_Help#Posting_a_working_showcase)

smruti_patra
20 Dec 2010, 10:02 PM
Thanks a lot for your quick reply.

I have tried with all these option.I have change the tooltipType to 'title' in below code. But the tooltip is not coming.


buttonCfg: {
text: '',
tootipType: 'title',
tooltip: 'Choose a file',
iconCls: 'upload-icon'
}

I have given the alert in the FileUploadField.js, i am able to see the tooltip value but on mouse over the icon, tooltip is not showing. I am thinking there might be some problem with fileuploadField.js for confuguring the button in text box.

I am asking about the upload fom panel with title file upload form on below link and I want the tooltip on computer icon in the file upload form.
http://dev.sencha.com/deploy/dev/examples/form/file-upload.htm.


Thanks,
-Smruti