Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2708

Register JS widgets with Ext's ComponentManager

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Invalid
    • Icon: Major Major
    • 4.2.0
    • 3.1.1, 3.2
    • None
    • None

      All JS components subclassed from Ext.Component class should be registered in Ext's ComponentManager, like:

      Ext.extend(org.ametys.widgets.RichTextWidget, org.ametys.form.TextAreaField, {});
      [...]
      Ext.ComponentMgr.registerType('rich-text', org.ametys.widgets.RichTextWidget);
      

      This would allow tests such as component.isXType(type), which is recursive, i.e. richtext.isXType('textarea') returns true.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: