Along with what is already included in the DataSources, I would like to store some more declarative information for my client side about how do display/edit various things. If possible, in order to avoid fragmentation, I would like to embed this information inside the DS XML files.
Therefore, I started to add custom attributes to my DataSource XML files. Upon loading these DataSources, the custom attributes are automatically translated to JS, and sent over to the client just fine. Of course the DataSource and DataSourceField classes at the client side do not understand the custom attributes, but I created subclasses that do, and act upon them.
Will this break anything? Is this in line with the current design of the system, or is this stupid?
Therefore, I started to add custom attributes to my DataSource XML files. Upon loading these DataSources, the custom attributes are automatically translated to JS, and sent over to the client just fine. Of course the DataSource and DataSourceField classes at the client side do not understand the custom attributes, but I created subclasses that do, and act upon them.
Will this break anything? Is this in line with the current design of the system, or is this stupid?
Comment