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 subFields showIf #2586
base: main
Are you sure you want to change the base?
support subFields showIf #2586
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! left one comment, otherwise looks good
input = { | ||
...input, | ||
[key]: `return (${fn.toString()}).apply(this, arguments)`, | ||
...(input.subFields == null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there might be a lint rule type coercion with double equeals, maybe we do this instead?
...(Array.isArray(input.subFields)
? {
subFields: input.subFields.map((input) => {
return this.convertFnToString({ keysToConvert, input });
}),
}
: {}),
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 82d3286. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch | |Sent with 💌 from NxCloud. |
Description
This PR tries to support
showIf
in buildersubFields
.Notice
This has not been checked yet, because I don't know how to run builder.
Motivation
I want
subFields
will be able to be shown conditionally like regular fields withshowIf
.Here is an example of
showIf
:https://github.com/BuilderIO/builder/assets/104710778/1037361d-b6d7-4862-94dc-7629d5eb72c3