File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ var HELLO_COMPONENT = "\
79
79
codeText = { HELLO_COMPONENT }
80
80
renderCode = { true }
81
81
transformer = { this . convertToJSX }
82
+ showCompiledJSTab = { false }
83
+ editorTabTitle = "Live HTML Editor"
82
84
/>
83
85
</ div >
84
86
) ;
Original file line number Diff line number Diff line change @@ -79,13 +79,16 @@ var ReactPlayground = React.createClass({
79
79
codeText : React . PropTypes . string . isRequired ,
80
80
transformer : React . PropTypes . func ,
81
81
renderCode : React . PropTypes . bool ,
82
+ showCompiledJSTab : React . PropTypes . bool ,
83
+ editorTabTitle : React . PropTypes . string
82
84
} ,
83
85
84
86
getDefaultProps : function ( ) {
85
87
return {
86
88
transformer : function ( code ) {
87
89
return JSXTransformer . transform ( code ) . code ;
88
90
} ,
91
+ editorTabTitle : 'Live JSX Editor' ,
89
92
showCompiledJSTab : true
90
93
} ;
91
94
} ,
@@ -150,7 +153,7 @@ var ReactPlayground = React.createClass({
150
153
< div
151
154
className = { JSXTabClassName }
152
155
onClick = { this . handleCodeModeSwitch . bind ( this , this . MODES . JSX ) } >
153
- Live JSX Editor
156
+ { this . props . editorTabTitle }
154
157
</ div >
155
158
156
159
return (
You can’t perform that action at this time.
0 commit comments