Replies: 1 comment 2 replies
-
Hi @SnapeEye! Conditional fields renderingYou're right, Fields groupingI don’t have any live examples of grouping at the moment, but this should be fairly straightforward to implement using the following methods on your builder store:
Are you running into any specific issues with grouping? Feel free to share your code and I’ll do my best to help out. Right now, I’m focused on releasing a v1.0 candidate based on community feedback and personal observations. This release will include your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I'm trying to make a POC for my app. And I want to use this builder for part of it.
But I have some issues/questions here.
As far as I understand, the only possible way to do it is via
shouldBeProcessed
method that can be declared increateEntity
.Potentially, it may work. But the available arguments seem to be quite limited.
For example, I created an attribute "rules" where I will gather some rules/conditions/comparisons that should define whether to display other fields. Like: hide -> fields(-s) -> if current field's value -> is/is not -> some comparison value.
But here is a catch: as rules is going to be an attribute - many rules, which actually may affect current field, may be stored in attributes of different fields. But
shouldBeProcessed
only providesentitiesValues
(btw, ONLY of the same type as current entity) andentity
(current processing entity). So that it is impossible to accessrules
attribute of all the fields.My question: is there any convenient/correct/possible way to handle this?
Because currently, the only solution is to add an extra argument for
shouldBeProcessed
-schema
.schema
is going to provide all fields and their attributes, so that it will make possible to access all therules
and then decide whether current fields should be processed. But, of course, this should be added to the lib.In doc, I found some code sample where some section fields is used. But there is actually no actual example of that component code.
IMHO, this is one of the most important parts for builder. As the current "demo" on the website does not show this. Also, I guess it'd require to improve dnd to support such entity.
My question: is there any real example of section entity (especially with dnd)?
Beta Was this translation helpful? Give feedback.
All reactions