File tree Expand file tree Collapse file tree
src/overview/xml-capabilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ package com.fun.components {
3838}
3939```
4040
41- If the style sheet is too large, it may be moved out of the ShockScript file using ` Embed() ` ; for instance:
41+ If the style sheet is too large, it may be moved out of the ShockScript file; for instance:
4242
4343``` plain
4444// CustomComponent.sx
@@ -47,9 +47,7 @@ package com.fun.components {
4747 public function CustomComponent() {
4848 return (
4949 <j:Button>
50- <j:Style
51- source={Embed("CustomComponent.css", static="text/plain")}
52- color="yellow"/>
50+ <j:Style source="CustomComponent.css" color="yellow"/>
5351 Click me
5452 </j:Button>
5553 );
@@ -77,7 +75,7 @@ package com.fun.components {
7775
7876 return (
7977 <j:Button>
80- <j:Style source ={stylesheet}/>
78+ <j:Style extend ={stylesheet}/>
8179 Click me
8280 </j:Button>
8381 );
You can’t perform that action at this time.
0 commit comments