File tree 3 files changed +39
-15
lines changed
3 files changed +39
-15
lines changed Original file line number Diff line number Diff line change
1
+ svg {
2
+ height : 32px ;
3
+ width : 32px ;
4
+ margin-right : 10px ;
5
+ vertical-align : middle;
6
+ }
7
+
8
+ .icon-name {
9
+ font-size : 14px ;
10
+ font-family : "Helvetica Neue" , Helvetica, Arial, sans-serif;
11
+ margin-top : 5px ;
12
+ color : # 86929d ;
13
+ }
14
+
15
+ .container {
16
+ display : inline-block;
17
+ width : 280px ;
18
+ padding : 0 15px 15px 0 ;
19
+ }
Original file line number Diff line number Diff line change 7
7
< script src ="https://unpkg.com/react-dom@17.0.1/umd/react-dom.production.min.js "> </ script >
8
8
< script src ="https://unpkg.com/@babel/standalone@7.2.5/babel.min.js "> </ script >
9
9
< script src ="https://unpkg.com/survey-core@1.9.42/survey.core.min.js "> </ script >
10
- < script src ="https://unpkg.com/survey-core@1.9.42/survey.i18n.min.js "> </ script >
11
10
< script src ="https://unpkg.com/survey-react-ui@1.9.42/survey-react-ui.min.js "> </ script >
12
- < link href ="https://unpkg.com/survey-core@1.9.42/defaultV2.min.css " type ="text/css " rel ="stylesheet "/>
13
11
< script src ="https://unpkg.com/survey-creator-core@1.9.42/survey-creator-core.min.js "> </ script >
14
- < link href ="https://unpkg.com/survey-creator-core@1.9.42/survey-creator-core.min.css " type ="text/css " rel ="stylesheet "/>
15
- < script src ="https://unpkg.com/survey-creator-react@1.9.42/survey-creator-react.min.js "> </ script >
12
+ < link href ="index.css " type ="text/css " rel ="stylesheet "/>
16
13
< script type ="text/babel " src ="index.js "> </ script >
17
- < body style ="margin: 0 ">
18
- < div id ="surveyContainer ">
19
- < div id ="creatorElement " style ="height: 100vh; "> </ div >
20
- </ div >
14
+ < body >
15
+ < div id ="icons " style ="height: 100vh; "> </ div >
21
16
</ body >
22
17
</ html >
Original file line number Diff line number Diff line change @@ -2,10 +2,20 @@ Survey.SvgRegistry.renderIcons();
2
2
3
3
ReactDOM . render (
4
4
< div >
5
- { Object . keys ( Survey . SvgRegistry . icons ) . map ( function ( name ) {
6
- return < div > < SurveyReact . SvgIcon iconName = { "icon-" + name }
7
- size = { "auto" } className = { "sd-detail-panel__icon" }
8
- /> { "icon-" + name } </ div > ;
9
- } ) }
10
- </ div >
11
- , document . getElementById ( "creatorElement" ) ) ;
5
+ {
6
+ Object . keys ( Survey . SvgRegistry . icons ) . map ( name => {
7
+ return (
8
+ < div class = "container" >
9
+ < SurveyReact . SvgIcon
10
+ iconName = { "icon-" + name }
11
+ size = { "auto" }
12
+ className = { "sd-detail-panel__icon" }
13
+ />
14
+ < span className = { "icon-name" } > { "icon-" + name } </ span >
15
+ </ div >
16
+ )
17
+ } )
18
+ }
19
+ </ div > ,
20
+ document . getElementById ( "icons" )
21
+ ) ;
You can’t perform that action at this time.
0 commit comments