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
I have followed the subclassing documentation as far as I can, but I have found the document tails off a bit prematurely as it only shows 'aprop' as an extra argument to the _fromObject method. It is not clear to me at all how to deserialise custom attributes.
I have followed the subclassing documentation as far as I can, but I have found the document tails off a bit prematurely as it only shows 'aprop' as an extra argument to the _fromObject method. It is not clear to me at all how to deserialise custom attributes.
Can you point me at an example of such?
Here is my latest fruitless attempt :
fabric.MyCustomWidget.fromObject = function(object, callback) { return fabric.Object._fromObject('Event', object, callback, { 'id': object.customAttribute1, 'name': object.customAttribute2 }); }
NB I have sucessfully written the toObject override for the subclass and it serialises the custom attributes ok.
The text was updated successfully, but these errors were encountered: