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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ gulp build-docs
43
43
By default, docs build to `build-docs/` (from the adjacent folder `docs/`).
44
44
**The command _must_ be run from your UI folder!** (In the above example, we use `./ui`.)
45
45
46
-
To configure a different `docs` location, modify [`tasks/docs.json`](https://github.com/Semantic-Org/Semantic-UI/blob/master/tasks/admin/docs.json) accordingly.
46
+
To configure a different `docs` location, modify [`tasks/config/docs.js`](https://github.com/Semantic-Org/Semantic-UI/blob/master/tasks/config/docs.js) accordingly.
Copy file name to clipboardExpand all lines: server/documents/behaviors/api.html.eco
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -822,7 +822,7 @@ type : 'UI Behavior'
822
822
823
823
<div class="no async mocked example">
824
824
<h4 class="ui header">Using Custom Backends</h4>
825
-
<p>Using <code>mockResponseAsync</code> you can specify a function which can execute your API request. This allows for you to use custom backends or wrappers outside of <code>$.ajax</code> for integrating API requests.</p>
825
+
<p>Using <code>responseAsync</code> you can specify a function which can execute your API request. This allows for you to use custom backends or wrappers outside of <code>$.ajax</code> for integrating API requests.</p>
Copy file name to clipboardExpand all lines: server/documents/behaviors/form.html.eco
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1063,6 +1063,7 @@ type : 'UI Behavior'
1063
1063
;
1064
1064
</div>
1065
1065
</div>
1066
+
1066
1067
<div class="length example">
1067
1068
<h4 class="ui header">Length</h4>
1068
1069
<p>Inputs can match against length of content</p>
@@ -1414,6 +1415,47 @@ type : 'UI Behavior'
1414
1415
</form>
1415
1416
</div>
1416
1417
1418
+
<div class="depends example">
1419
+
<h4 class="ui header">
1420
+
Dependent Fields
1421
+
<div class="ui teal horizontal label">New in 2.2</div>
1422
+
</h4>
1423
+
<p>You can specify validation fields to only be used when other fields are present. Simply add <code>depends: 'id'</code> with the ID of the field that must be non-blank for this rule to evaluate.</p>
1424
+
<div class="ignored code">
1425
+
$('.ui.form')
1426
+
.form({
1427
+
fields: {
1428
+
yearsPracticed: {
1429
+
identifier : 'yearsPracticed',
1430
+
depends : 'isDoctor',
1431
+
rules : [
1432
+
{
1433
+
type : 'empty',
1434
+
prompt : 'Please enter the number of years you have been a doctor'
1435
+
}
1436
+
]
1437
+
}
1438
+
}
1439
+
})
1440
+
;
1441
+
</div>
1442
+
<form class="ui form segment">
1443
+
<div class="inline field">
1444
+
<div class="ui checkbox">
1445
+
<input type="checkbox" name="isDoctor" />
1446
+
<label>Are you a doctor?</label>
1447
+
</div>
1448
+
</div>
1449
+
<div class="field">
1450
+
<label>How long have you been a medical professional</label>
1451
+
<input type="text" name="yearsPracticed">
1452
+
</div>
1453
+
<div class="ui divider"></div>
1454
+
<div class="ui blue submit button">Submit</div>
1455
+
<div class="ui error message"></div>
1456
+
</form>
1457
+
</div>
1458
+
1417
1459
<div class="optional example">
1418
1460
<h4 class="ui header">Optional Fields</h4>
1419
1461
<p>Adding the parameter <code>optional: true</code> will only add your validation rules when the field is <b>not empty</b>.
0 commit comments