mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fix language tags in doc-snippets
The doc-snippets were inconsistent (no spaces before title, small-caps, JS instead of JavaScript, etc.)
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:
|
To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:
|
||||||
|
|
||||||
##iOS
|
##iOS
|
||||||
```js
|
``` JavaScript
|
||||||
var app = require("application");
|
var app = require("application");
|
||||||
app.init(null);
|
app.init(null);
|
||||||
var tests = require("Tests");
|
var tests = require("Tests");
|
||||||
@ -9,7 +9,7 @@ tests.runAll();
|
|||||||
```
|
```
|
||||||
|
|
||||||
##Android
|
##Android
|
||||||
```js
|
``` JavaScript
|
||||||
app.init({
|
app.init({
|
||||||
getActivity: function(intent) {
|
getActivity: function(intent) {
|
||||||
return com.tns.NativeScriptActivity.extend({});
|
return com.tns.NativeScriptActivity.extend({});
|
||||||
|
@ -107,7 +107,7 @@ export var test_fetch_response_status = function (done) {
|
|||||||
|
|
||||||
// <snippet module="fetch" title="fetch">
|
// <snippet module="fetch" title="fetch">
|
||||||
// ### Get Response status
|
// ### Get Response status
|
||||||
// ``` fetch
|
// ``` JavaScript
|
||||||
fetch("https://httpbin.org/get").then(function (response) {
|
fetch("https://httpbin.org/get").then(function (response) {
|
||||||
//// Argument (response) is Response!
|
//// Argument (response) is Response!
|
||||||
var statusCode = response.status;
|
var statusCode = response.status;
|
||||||
|
@ -45,7 +45,7 @@ import labelModule = require("ui/label");
|
|||||||
// {%raw%}<ListView items="{{ myItems }}" loadMoreItems="listViewLoadMoreItems" />{%endraw%}
|
// {%raw%}<ListView items="{{ myItems }}" loadMoreItems="listViewLoadMoreItems" />{%endraw%}
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function listViewLoadMoreItems(args) {
|
// function listViewLoadMoreItems(args) {
|
||||||
// // Expand your collection bound to the ListView with more items here!
|
// // Expand your collection bound to the ListView with more items here!
|
||||||
// }
|
// }
|
||||||
|
@ -17,7 +17,7 @@ import placeholderModule = require("ui/placeholder");
|
|||||||
// {%raw%}<Placeholder creatingView="creatingView" />{%endraw%}
|
// {%raw%}<Placeholder creatingView="creatingView" />{%endraw%}
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
//var platform = require("platform");
|
//var platform = require("platform");
|
||||||
//var utils = require("utils/utils");
|
//var utils = require("utils/utils");
|
||||||
//
|
//
|
||||||
|
@ -18,7 +18,7 @@ import progressModule = require("ui/progress");
|
|||||||
// {%raw%}<Progress value="{{ someProperty }}" />{%endraw%}
|
// {%raw%}<Progress value="{{ someProperty }}" />{%endraw%}
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function pageLoaded(args) {
|
// function pageLoaded(args) {
|
||||||
// var page = args.object;
|
// var page = args.object;
|
||||||
// page.bindingContext = { someProperty : 42 };
|
// page.bindingContext = { someProperty : 42 };
|
||||||
|
@ -21,7 +21,7 @@ function _createSegmentedBar(): segmentedBarModule.SegmentedBar {
|
|||||||
// ``` JavaScript
|
// ``` JavaScript
|
||||||
var segmentedBar = new segmentedBarModule.SegmentedBar();
|
var segmentedBar = new segmentedBarModule.SegmentedBar();
|
||||||
// ```
|
// ```
|
||||||
// ``` xml
|
// ``` XML
|
||||||
// <SegmentedBar>
|
// <SegmentedBar>
|
||||||
// <SegmentedBar.items>
|
// <SegmentedBar.items>
|
||||||
// <SegmentedBarItem title="Item 1" />
|
// <SegmentedBarItem title="Item 1" />
|
||||||
|
@ -23,7 +23,7 @@ import sliderModule = require("ui/slider");
|
|||||||
// </StackLayout>
|
// </StackLayout>
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function pageLoaded(args) {
|
// function pageLoaded(args) {
|
||||||
// var page = args.object;
|
// var page = args.object;
|
||||||
// var obj = new observable.Observable();
|
// var obj = new observable.Observable();
|
||||||
|
@ -21,7 +21,7 @@ import switchModule = require("ui/switch");
|
|||||||
// </StackLayout>
|
// </StackLayout>
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function pageLoaded(args) {
|
// function pageLoaded(args) {
|
||||||
// var page = args.object;
|
// var page = args.object;
|
||||||
// var obj = new observable.Observable();
|
// var obj = new observable.Observable();
|
||||||
|
@ -29,7 +29,7 @@ import observable = require("data/observable");
|
|||||||
// </StackLayout>
|
// </StackLayout>
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function pageLoaded(args) {
|
// function pageLoaded(args) {
|
||||||
// var page = args.object;
|
// var page = args.object;
|
||||||
// var obj = new observable.Observable();
|
// var obj = new observable.Observable();
|
||||||
|
@ -29,7 +29,7 @@ import observable = require("data/observable");
|
|||||||
// </StackLayout>
|
// </StackLayout>
|
||||||
// </Page>
|
// </Page>
|
||||||
//```
|
//```
|
||||||
//```JS
|
//``` JavaScript
|
||||||
// function pageLoaded(args) {
|
// function pageLoaded(args) {
|
||||||
// var page = args.object;
|
// var page = args.object;
|
||||||
// var obj = new observable.Observable();
|
// var obj = new observable.Observable();
|
||||||
|
Reference in New Issue
Block a user