|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
I've a very simple requirement. I need a hyper link in my Form Panel. I've looked at several threads in Ext JS forum but none of them are providing a satisfactory solution. Please help. Thanks Mayura |
|
#2
|
||||
|
||||
|
use the html config option in the items:
html: '<a href="#">link</a>', |
|
#3
|
|||
|
|||
|
make sure you use {0}
function renderValue(value){ return String.format( '<b><a href="#" onClick="javascript omething();javascript:return(false);">{0}</a></b>', value);} {header: "Price", width: 35, dataIndex: 'price', sortable: true, renderer: renderValue}; |
|
#4
|
|||
|
|||
|
find out what autoEl in the boxcomponent config option is....
![]() |
|
#5
|
|||
|
|||
|
Thanks for your inputs. But I do not want to create a hyperlink in GridPanel but in FormPanel. In GridPanel it can be easily done using renderer.
|
|
#6
|
|||
|
|||
|
try this...
|
|
#7
|
|||
|
|||
|
Hey, thanks a lot!
This worked. ![]() { xtype:'box', autoEl: {html:'<a href="javascript:test()">Test</a>'} } |
![]() |
| Thread Tools | |
|
|