Releases: dcasia/conditional-container
Releases · dcasia/conditional-container
v1.0.7
- Make package compatible with
NovaFlexibleContent
v1.0.6
- Fix crash saving resource if
Heading
field is present #3
v1.0.5
- fix issue with BelongsTo relationship when accessing edit view
v1.0.4
- Fix issue with BelongsToMany nova field.
v1.0.2
- Fix issue where 2 inputs with the exactly same name within different conditional containers wouldnt coexist
- Support panels! now you can have panels within conditional containers and have it properly shown on forms/details view
v1.0.1
- Support depending on a deeply nested value within another conditional container! now you are able to do this:
Text::make('A'),
ConditionalContainer::make([
Text::make('B'),
])->if('A = 1'),
ConditionalContainer::make([
Text::make('C'),
])->if('B = 1'),
Field C
only shows if the field B is = 1
, but field B
only shows if the field A = 1
v1.0.0
Breaking change
- The internal logic has been reworked to cover more uses cases
->if()
no longer takes 3 arguments, it nows accepts a logical expression string a = b OR c > 1 AND d contains "hello world"
or function
that returns a logical expression string