File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed
static/usage/v6/segment-button/layout Expand file tree Collapse file tree 3 files changed +37
-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
import angular_example_component_html from './angular/example_component_html.md';
@@ -9,7 +10,12 @@ import angular_example_component_ts from './angular/example_component_ts.md';
9
10
<Playground
10
11
version="6"
11
12
code={{
12
- javascript,
13
+ javascript: {
14
+ files: {
15
+ 'index.html': javascript_index_html,
16
+ 'index.ts': javascript_index_ts,
17
+ },
18
+ },
13
19
react,
14
20
vue,
15
21
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
+
4
+ import { addIcons } from ' ionicons' ;
5
+ import { call , heart , pin } 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 ({ call , heart , pin });
27
+
28
+ defineCustomElements ();
29
+ ```
You can’t perform that action at this time.
0 commit comments