Skip to content

Commit 33ec62c

Browse files
authored
Upgrade Fomantic-UI to 2.9.4-beta.20 (#2134)
1 parent 30b06e6 commit 33ec62c

File tree

16 files changed

+1290
-693
lines changed

16 files changed

+1290
-693
lines changed

docs/form.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,14 @@ $form->addControl('phone3');
810810
$form->addControl('phone4');
811811
812812
$form->setControlsDisplayRules([
813-
'phone2' => ['phone1' => 'empty'],
814-
'phone3' => ['phone1' => 'empty', 'phone2' => 'empty'],
815-
'phone4' => ['phone1' => 'empty', 'phone2' => 'empty', 'phone3' => 'empty'],
813+
'phone2' => ['phone1' => 'notEmpty'],
814+
'phone3' => ['phone1' => 'notEmpty', 'phone2' => 'notEmpty'],
815+
'phone4' => ['phone1' => 'notEmpty', 'phone2' => 'notEmpty', 'phone3' => 'notEmpty'],
816816
]);
817817
```
818818

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

822822
Here is a more advanced example:
823823

js/src/services/form.service.js

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class FormService {
2525
{
2626
rules: $.extend(true, {}, $.fn.form.settings.rules, {
2727
rules: {
28-
notEmpty: $.fn.form.settings.rules.empty,
2928
isVisible: this.isVisible,
3029
isEqual: this.isEqual,
3130
},

0 commit comments

Comments
 (0)