File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
static/usage/v6/toast/icon Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Playground from '@site/src /components/global/Playground';
2
2
3
- import javascript from './javascript.md';
3
+ import javascript_index_html from './javascript/index_html.md';
4
+ import javascript_index_ts from './javascript/index_ts.md';
4
5
import react from './react.md';
5
6
import vue from './vue.md';
6
7
@@ -11,7 +12,12 @@ import angular_example_component_ts from './angular/example_component_ts.md';
11
12
version="6"
12
13
devicePreview
13
14
code={{
14
- javascript,
15
+ javascript: {
16
+ files: {
17
+ 'index.html': javascript_index_html,
18
+ 'index.ts': javascript_index_ts,
19
+ },
20
+ },
15
21
react,
16
22
vue,
17
23
angular: {
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ``` ts
2
+ import { defineCustomElements } from ' @ionic/core/loader' ;
3
+ import { toastController } from ' @ionic/core' ;
4
+ import { addIcons } from ' ionicons' ;
5
+ import { globe } from ' ionicons/icons' ;
6
+
7
+ /* Core CSS required for Ionic components to work properly */
8
+ import ' @ionic/core/css/core.css' ;
9
+
10
+ /* Basic CSS for apps built with Ionic */
11
+ import ' @ionic/core/css/normalize.css' ;
12
+ import ' @ionic/core/css/structure.css' ;
13
+ import ' @ionic/core/css/typography.css' ;
14
+
15
+ /* Optional CSS utils that can be commented out */
16
+ import ' @ionic/core/css/padding.css' ;
17
+ import ' @ionic/core/css/float-elements.css' ;
18
+ import ' @ionic/core/css/text-alignment.css' ;
19
+ import ' @ionic/core/css/text-transformation.css' ;
20
+ import ' @ionic/core/css/flex-utils.css' ;
21
+ import ' @ionic/core/css/display.css' ;
22
+
23
+ /* Theme variables */
24
+ import ' ./theme/variables.css' ;
25
+
26
+ addIcons ({ globe });
27
+
28
+ defineCustomElements ();
29
+
30
+ (window as any ).toastController = toastController ;
31
+ ```
You can’t perform that action at this time.
0 commit comments