Hi,
I am working on a frontend for a system at my job - using ExtJS 3.4. It is basically a tabpanel with a table layout. In my table I have 5 "subpanels" with different colspans.
One of the "subpanels" is a form panel... so far so good - this works fine... In the form I have a number of checkbox groups and textfields and one of these textfields needs a button next to it.
After some searching I found the compositefield and realized this would solve my problem. I do however get this error when using a compositefield:
Code:
Uncaught TypeError: undefined is not a function
The compositefield is setup like this:
Code:
{
xtype: 'compositefield',
defaults:
{
flex: 1
},
items: [
{
xtype:"numberfield",
fieldLabel:"Set PIN",
id:"pin_value",
name: 'pin_value'
},
{
xtype: 'button',
text: 'Remove PIN',
name: 'remove_pinBtn',
handler: function() {/* submit code */ }
}]
}
The code snippet is an item in a form panel - didn't think it was necessary to post the entire form as this works fine without the compositefield (i.e I comment out the compositefield item).