-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GridFieldComponents work with arbitrary ViewableData
where practical
#10771
Comments
My proposed rules of thumb for what "where practical" means:
|
The following modules have GridField components:
Maybe updating those is beyond the scope of this card. |
@maxime-rainville I already made a card for Advanced workflow is explicitly out of scope - as are a few others there which are only intended to be used in the way the module uses it, rather than in developer-defined gridfields. ckan-registry isn't even supported anymore.... Maybe open a card to cover any there which:
|
It is done. |
Currently most
GridFieldComponent
classes implicitly require some methods which are implemented onDataObject
but not onViewableData
.It is not uncommon to want to use a
GridField
with other viewable data, such asArrayData
(e.g. pulled from some API).It should be easy to use most
GridField
components with arbitraryViewableData
. Any components for which this is not practical should be clearly documented as requiring specific methods (and in CMS 6 probably will be typehinted toDataObject
).Acceptance Criteria
GridFieldComponent
classes work with arbitraryViewableData
ViewableData
(if any), this is clearly documented in a way that developers can identify from within their IDE.Notes
ViewableData
where practical (gridfieldextensions edition) symbiote/silverstripe-gridfieldextensions#376PRs
The text was updated successfully, but these errors were encountered: