In regard to overriding the implementation and adding these things as you wish...
http://www.sencha.com/forum/showthre...ting-Build-298
In regard to overriding the implementation and adding these things as you wish...
http://www.sencha.com/forum/showthre...ting-Build-298
BUMP:
Allow to enter text in controller action name for user defined events (triggerclick for example):
Attachment 32530
Event function can be generated with no arguments, developer must use arguments array to get them, for example:
Of course would be nice if Designer can detect non-standard or "unregistered" event and allow the addition of parameters but at first this way could be easy to implement.PHP Code:onTriggerClick: function() {
var field = arguments [0];
...
}
For now I have no idea on how capture events from use trigger field or derivates.
Regards.
It's on our radar.
Hi All,
I needed to have additional "clear" trigger to combobox and found solution. I exported standard combobox to file. This option is available if combobox, or any other component is toplevel i.e. is located in Views section. You just need to right click and select export to file. The exported file is xds file which is recognized by SD. I made some modifications in the file externally and added some custom code. Afterwards I used import from file which is available by right click on any component in components toolbar. After that you can use this new Custom Component just as an ordinary one, i.e. you may dragndrop, assign values and etc. Here is content of CliearableCombo.xds file:
The above code is solution for some problems in this thread, but I have a question:Code:{
"xdsVersion": "2.0.0",
"frameworkVersion": "ext40",
"internals": {
"type": "combobox",
"reference": {
"name": "items",
"type": "array"
},
"codeClass": null,
"userConfig": {
"designer|userClassName": "ClearableCombo",
"designer|userAlias": "clearablecombo",
"trigger2Cls": "x-form-clear-trigger",
"onTrigger2Click":function()
{
var me=this;
me.clearValue();
},
},
"customConfigs": [
{
"group": "(Custom Properties)",
"name": "trigger2Cls",
"type": "object"
},
{
"group": "(Custom Properties)",
"name": "onTrigger2Click",
"type": "function"
}
],
"expanded": true
},
"linkedNodes": {},
"boundStores": {},
"id": "ucmpClearableCombo",
"name": "ClearableCombo",
"category": {
"id": "xdcForm Fields",
"name": "Form Fields"
}
}
We are using source sharing and system and I want to know there this custom component is stored, i.e. what files should be shared to make tshi custom component available to other developers. I was unable to find where it is stored.
Thanks ahead.
David.
Put your modified xsd files under version control so each developer can check-out them and import in their own SD installation.Quote:
We are using source sharing...
BTW, what I need is the ability to declare controller action for "triggerclick" or any user defined event.
Regards.
Hi and Thanks for reply,
The solution does not work well cause after save the data in initComponent function is not saved by SD. So I found workaround and exported xds file should look like this:
Code:{
"xdsVersion": "2.0.0",
"frameworkVersion": "ext40",
"internals": {
"type": "combobox",
"reference": {
"name": "items",
"type": "array"
},
"codeClass": null,
"userConfig": {
"fieldLabel": "Field Label",
"designer|userClassName": "ClearableCombo",
"designer|userAlias": "clearablecombo",
"trigger2Cls": "x-form-clear-trigger"
},
"customConfigs": [
{
"group": "(Custom Properties)",
"name": "trigger2Cls",
"type": "string"
},
{
"group": "(Custom Properties)",
"name": "onTrigger2Click",
"type": "function"
}
],
"expanded": true,
"cn": [
{
"type": "fixedfunction",
"reference": {
"name": "items",
"type": "array"
},
"codeClass": null,
"userConfig": {
"fn": "onTrigger2Click",
"implHandler": "var me = this;\nme.clearValue();",
"designer|userClassName": "onTrigger2Click"
},
"customConfigs": [],
"expanded": true
}
]
},
"linkedNodes": {},
"boundStores": {},
"id": "ucmpClearableCombo",
"name": "ClearableCombo",
"category": {
"id": "xdcForm Fields",
"name": "Form Fields"
}
}
Overrides aren't stored in XSD nor local storage, just in the app/view/override so you should copy that/those files also and put in version control.
Regards.