For now we are just setting textfield using xtype, here the sample:
PHP Code:
{
"classAlias": "plugin.clearbutton",
"className": "Ext.ux.form.field.ClearButton",
"inherits": "abstractplugin",
"autoName": "MyClearButtonPlugin",
"helpText": "<b>Ext.ux.form.field.ClearButton</b><br>Plugin for text components that shows a clear button over the text field. When the button is clicked the text field is set empty. Works with Ext.form.field.Text, Ext.form.field.TextArea, Ext.form.field.ComboBox and Ext.form.field.Date.",
"validParentTypes": ["textfield"],
"toolbox": {
"name": "Clear Button Plugin",
"category": "Form Fields",
"groups": ["Forms"]
},
...
Also we try extend the plugin using Ext.AbstractPlugin but still same issue. See the attach file, when we try to drag & drop into Text Field, we just can't.
error-plugin-architect.png
This plugin is base on extension Ext.ux.form.field.ClearButton by Fortis IT Services GmbH
Here's the complete zip file for the plugin, just unzip this on your extensions directory (configure on Architect) to test.