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

Use component as field type in table #301

Conversation

johnbullnz
Copy link

Allows components to be used in a table. See demo/tables.py.

Resolves #293

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@@ -26,6 +28,10 @@ export const DisplayComp: FC<Display> = (props) => {
}
}

const isCompProps = (obj: any): obj is FastProps => {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs some work... currently very limited checks done to ensure the prop contains a valid component definition.

@jimkring
Copy link
Contributor

Nice! I didn’t see this and made a similar PR #308.

@johnbullnz johnbullnz closed this May 28, 2024
@johnbullnz
Copy link
Author

Thanks @jimkring. Closing this as it's covered by your PR.

@johnbullnz johnbullnz deleted the use-component-as-field-type-in-tables branch May 28, 2024 22:32
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.

How can I embed a component like an c.Image in a c.Table or c.Detail?
2 participants