Skip to content

Commit de4abac

Browse files
committed
Merge branch 'master' of github.com:Semantic-Org/Semantic-UI-Docs
2 parents 03fe2cf + b442876 commit de4abac

61 files changed

Lines changed: 11975 additions & 9161 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gulp build-docs
4343
By default, docs build to `build-docs/` (from the adjacent folder `docs/`).
4444
**The command _must_ be run from your UI folder!** (In the above example, we use `./ui`.)
4545

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.
4747

4848

4949
### Running the Server

docpad.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ docpadConfig = {
2929
# Here are some old site urls that you would like to redirect from
3030
oldUrls: [],
3131

32-
version: "2.1.8",
32+
version: "2.2.0",
3333

3434
branch: "master",
3535

server/documents/behaviors/api.html.eco

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ type : 'UI Behavior'
822822

823823
<div class="no async mocked example">
824824
<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>
826826
<div class="code" data-type="javascript" data-demo="true">
827827
$('.async.mocked .button')
828828
.api({
@@ -1258,6 +1258,11 @@ type : 'UI Behavior'
12581258
</td>
12591259
<td>Metadata used to store XHR and response promise</td>
12601260
</tr>
1261+
<tr>
1262+
<td>silent</td>
1263+
<td>False</td>
1264+
<td>Silences all console output including error messages, regardless of other debug settings.</td>
1265+
</tr>
12611266
<tr>
12621267
<td>debug</td>
12631268
<td>false</td>

server/documents/behaviors/form.html.eco

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ type : 'UI Behavior'
10631063
;
10641064
</div>
10651065
</div>
1066+
10661067
<div class="length example">
10671068
<h4 class="ui header">Length</h4>
10681069
<p>Inputs can match against length of content</p>
@@ -1414,6 +1415,47 @@ type : 'UI Behavior'
14141415
</form>
14151416
</div>
14161417

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+
14171459
<div class="optional example">
14181460
<h4 class="ui header">Optional Fields</h4>
14191461
<p>Adding the parameter <code>optional: true</code> will only add your validation rules when the field is <b>not empty</b>.

server/documents/behaviors/state.html.eco

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ type : 'Draft'
387387
</td>
388388
<td>Metadata used to store xhr and response promise</td>
389389
</tr>
390+
<tr>
391+
<td>silent</td>
392+
<td>False</td>
393+
<td>Silences all console output including error messages, regardless of other debug settings.</td>
394+
</tr>
390395
<tr>
391396
<td>debug</td>
392397
<td>false</td>

0 commit comments

Comments
 (0)