Skip to content

Commit

Permalink
Upgrade Fomantic-UI to 2.9.4-beta.20 (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Dec 4, 2023
1 parent 30b06e6 commit 33ec62c
Show file tree
Hide file tree
Showing 16 changed files with 1,290 additions and 693 deletions.
10 changes: 5 additions & 5 deletions docs/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -810,14 +810,14 @@ $form->addControl('phone3');
$form->addControl('phone4');
$form->setControlsDisplayRules([
'phone2' => ['phone1' => 'empty'],
'phone3' => ['phone1' => 'empty', 'phone2' => 'empty'],
'phone4' => ['phone1' => 'empty', 'phone2' => 'empty', 'phone3' => 'empty'],
'phone2' => ['phone1' => 'notEmpty'],
'phone3' => ['phone1' => 'notEmpty', 'phone2' => 'notEmpty'],
'phone4' => ['phone1' => 'notEmpty', 'phone2' => 'notEmpty', 'phone3' => 'notEmpty'],
]);
```

The only catch here is that "empty" means "not empty". ATK UI relies on rules defined by Fomantic-UI
https://fomantic-ui.com/behaviors/form.html, so you can use any of the conditions there.
ATK UI relies on rules defined by Fomantic-UI https://fomantic-ui.com/behaviors/form.html,
so you can use any of the conditions there.

Here is a more advanced example:

Expand Down
1 change: 0 additions & 1 deletion js/src/services/form.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class FormService {
{
rules: $.extend(true, {}, $.fn.form.settings.rules, {
rules: {
notEmpty: $.fn.form.settings.rules.empty,
isVisible: this.isVisible,
isEqual: this.isEqual,
},
Expand Down
Loading

0 comments on commit 33ec62c

Please sign in to comment.