You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution 1 does not require real JavaScript logic, which means it does not introduce version compatibility problems when running on external glass-easel environment.
When adding a custom field in a component (defined with definition API), its type is hard to specify.
Solution 1
Add a definition field for specifying types for the extra fields, e.g.
The data type of
extraThisFieldsType
can be merged intoThisType
of the component.Solution 2
Add another initiation function, which returns some fields that will be written into
this
(of the method caller, if any), e.g.If some fields cannot be set during initiation, its type should be given manually, e.g.
Solution 3
Add a sopport for chaining only.
This requires a polyfill to run on legacy framework, and requires more code changes.
The text was updated successfully, but these errors were encountered: