You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would make the attr2attribute required for the elementtag only if the attr1attribute is present with value v1.
Another possibility could be the reverse: if an attribute is present/not present the following list of attributes are required.
I know that the conditions possibilities might escalate quickly but supporting a couple of basic ifs would be very helpful.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi! @RPComputer Thanks for the suggestion!. This seems like a nice feature.
I think it should check with AND condition when there are multiple conditions. What do you think?
Hi @yeonjuan, yes as default condition logical join AND sounds right!
I'm uncertain for the configuration logic order of the conditioned attrs: should the configuration put requirements under a logic condition or each attribute should have its optional condition?
For simplicity it might be easier the first option, what do you think?
@RPComputer
If you'd like to implement it yourself, I'd be very grateful for a PR 👍 , otherwise I'll implement it myself, but it may delay the completion of the implementation a bit.
Hello,
I think that it would be interesting to add to the require-attrs rule the conditionality option for requirement.
For example:
Given the element:
<element attr1="v1">
Rule setting:
This would make the attr2 attribute required for the element tag only if the attr1 attribute is present with value v1.
Another possibility could be the reverse: if an attribute is present/not present the following list of attributes are required.
I know that the conditions possibilities might escalate quickly but supporting a couple of basic ifs would be very helpful.
What do you think?
The text was updated successfully, but these errors were encountered: