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: ui-and-styling.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1049,7 +1049,7 @@ If you need to style parts of the text, you can use a combination of a `Formatte
1049
1049
1050
1050
`<DatePicker>` is a UI component that lets users select a date from a pre-configured range.
1051
1051
1052
-
> See also: [TimePicker](/en/docs/elements/components/time-picker).
1052
+
> See also: [TimePicker](/ui-and-styling.html#timepicker).
1053
1053
1054
1054
---
1055
1055
@@ -1265,7 +1265,7 @@ export default {
1265
1265
1266
1266
`<HtmlView>` is a UI component that lets you show static HTML content.
1267
1267
1268
-
See also: [WebView](/en/docs/elements/components/web-view).
1268
+
See also: [WebView](#webview).
1269
1269
1270
1270
---
1271
1271
@@ -1884,7 +1884,7 @@ export class ListViewTipsComponent implements OnInit {
1884
1884
1885
1885
#### Using `<ListView>` with multiple `<v-template>` blocks
1886
1886
1887
-
The [`v-template` component](/en/docs/utilities/v-template) is used to define how each list item is shown on the screen.
1887
+
The [`v-template` component](https://nativescript-vue.org/en/docs/utilities/v-template/) is used to define how each list item is shown on the screen.
1888
1888
1889
1889
If you need to visualize one or more list items differently than the rest, you can enclose them in additional `<v-template>` blocks and use conditions. You can have as many `<v-template>` blocks as needed within one `<ListView>`.
1890
1890
@@ -3477,7 +3477,7 @@ To apply multiple styles to the text in your `<TextView>`, you can use `<Formatt
3477
3477
3478
3478
`<TimePicker>` is a UI component that lets users select time.
3479
3479
3480
-
> See also: [DatePicker](/en/docs/elements/components/date-picker).
3480
+
> See also: [DatePicker](ui-and-styling.html#date-picker).
3481
3481
3482
3482
---
3483
3483
@@ -3603,7 +3603,7 @@ export class UsageComponent {
3603
3603
3604
3604
`<WebView>` is a UI component that lets you show web content in your app. You can pull and show content from a URL or a local HTML file, or you can render static HTML content.
3605
3605
3606
-
See also: [HtmlView](/en/docs/elements/components/html-view).
You can use custom fonts in your app (in .TTF or .OTF format).
4371
4372
The NativeScript runtime will look for the font files under the `app/fonts/` (or `src/fonts/` if you use Angular) directory and load them automatically.
Since NativeScript 7.1, the CLI has the `nsfonts` command. Executing this command will print out the css styles you need for any custom fonts found in your application.
@@ -4445,18 +4446,18 @@ The @import CSS rule allows you to import CSS from a local file. This rule must
4445
4446
4446
4447
With NativeScript, it is possible to manage your app styles using the SASS CSS pre-compiler instead of plain CSS files. Just as with web projects, SASS gives your stylesheets extra capabilities like shared variables, mixins and nested style tags.
4447
4448
4448
-
To use SASS with NativeScript, a SASS compiler like [`node-sass`](https://www.npmjs.com/package/node-sass?activeTab=versions) or [`sass`](https://www.npmjs.com/package/dart-sass) is required. This compiler will hook-in to the NativeScript build process and automatically convert `.scss/.sass` files to `.css` during `build` and `livesync` operations. Since SASS is compiled to CSS at build time, it does **not** require any changes to your stylesheet naming conventions for NativeScript's normal convention-based patterns to work. SASS files with the same name as a NativeScript page will still be automatically linked.
4449
+
To use SASS with NativeScript, a SASS compiler like [`sass`](https://www.npmjs.com/package/sass) is required. This compiler will hook-in to the NativeScript build process and automatically convert `.scss/.sass` files to `.css` during `build` and `livesync` operations. Since SASS is compiled to CSS at build time, it does **not** require any changes to your stylesheet naming conventions for NativeScript's normal convention-based patterns to work. SASS files with the same name as a NativeScript page will still be automatically linked.
4449
4450
4450
4451
You can use SASS with either enabling it manually:
4451
4452
4452
4453
```Shell
4453
-
npminode-sass--save-dev
4454
+
npmisass--save-dev
4454
4455
```
4455
4456
4456
4457
Or by using a template that has SASS already enabled. For example:
For projects created with NativeScript 5.x and below (which are using the legacy `nativescript-dev-webpack`), you can run the `migrate` command to update the SASS compiler (and remove the legacy plugin). Note that the `migrate` command is available in NativeScript CLI 6 and above.
0 commit comments