Skip to content
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

Support for external entities #5

Merged
merged 9 commits into from
Feb 10, 2024
Merged

Support for external entities #5

merged 9 commits into from
Feb 10, 2024

Conversation

Pierstoval
Copy link
Member

@Pierstoval Pierstoval commented Feb 3, 2024

Goal:

  • Be able to load an entity from an external Crud configuration
  • Configure the loading process via StateProvider options
  • Customize the fields that will be displayed (with real Field instances coming from the external crud)
  • Create detailed forms with a list of external entities, with hardcoded filters (dynamic filters are a bit too complex for now)

@Pierstoval
Copy link
Member Author

Current state if the Test crud config has a relation with the Book crud:

image

Field config in "list" operation:

new CrudEntityField('crud_entity_field', 'Crud entity field (book)', {
	crud_name: 'books',
	get_provider_operation: {
		entity_field: 'title',
	},
})

@Pierstoval Pierstoval merged commit cea8e7e into main Feb 10, 2024
1 check failed
@Pierstoval Pierstoval deleted the entities branch February 10, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant