It would be nice to be able to send a record placeholder into a widget as an input type. The custom widget won’t necessarily know the shape, but that’s okay - Tulip could send the placeholder in as just an object:
This would save you from having to break out the record and send everything in as individual fields, and it would allow the placeholder to be more dynamic.
@wz2b Thanks for the request! As @thorsten.langner mentioned, you can pass record placeholders in by using an object parameter. In the app editor you can then map the columns of the placeholder into the custom widget prop (left are the CW props, right are the placeholder columns):
We’d like to extend this so you can pass queries in to arrays of objects, but that’s a bit further out.
Let me know if that handles what you were looking for!