Suggestion: Allow the "options" field property to be a function similar to hooks #1899
hades200082
started this conversation in
Feature Requests & Ideas
Replies: 2 comments
-
Is there an architectural reason why this can't be done? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah pulling this from #564 (comment) From @DanRibbens
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As mentioned in Discord ( https://discord.com/channels/967097582721572934/1064471608833609728 )
My idea here is that, for example with "select" fields, if the "options" property were to accept a function, and that function could access the data of other fields in the current collection/global, then it would become possible to have fields whose available options are dynamic based on the other values in the content item.
My thoughts on this so far are that it might also need some additional properties to reduce the amount of re-rendering going on. Example definition below:
I've made a couple of assumptions here:
Beta Was this translation helpful? Give feedback.
All reactions