File tree Expand file tree Collapse file tree 5 files changed +195
-102
lines changed
src/main/java/com/openfin/desktop/demo Expand file tree Collapse file tree 5 files changed +195
-102
lines changed Original file line number Diff line number Diff line change 2626 OpenFinLayouts . snapAndDock . undockWindow ( ) ;
2727 }
2828
29+ function createChildWindow ( ) {
30+ const winOption = {
31+ name :'child' , // needs to be unique within its app
32+ defaultWidth : 420 ,
33+ defaultHeight : 420 ,
34+ url : 'http://localhost:8888/layout.html' ,
35+ frame : true ,
36+ autoShow : true ,
37+ saveWindowState : false
38+ } ;
39+ fin . Window . create ( winOption ) ;
40+ }
41+
42+
2943 </ script >
3044</ head >
31- < body style =" background-color: rgb(158, 240, 222); " >
45+ < body >
3246< script >
3347
3448</ script >
3953< div >
4054 < Button id ="undock " disabled onclick ="undockMe() "> Undock </ Button >
4155</ div >
56+ < div >
57+ < Button id ="createChild " onclick ="createChildWindow() "> Create Child Window </ Button >
58+ </ div >
4259
4360</ body >
4461</ html >
Original file line number Diff line number Diff line change 2121 }
2222 </ script >
2323</ head >
24- < body style ="background-color: rgb(158, 240, 222); ">
25- < script >
26- const randomColor = ( ) => {
27- return '#' + ( ( 1 << 24 ) * Math . random ( ) | 0 ) . toString ( 16 ) ;
28- } ;
24+ < body >
2925
30- document . addEventListener ( 'DOMContentLoaded' , ( ) => {
31- document . body . style . backgroundColor = randomColor ( ) ;
32- } ) ;
33- </ script >
34-
3526 < p > Openfin Layouts Library is included via script tag in this window. Accessible with global var OpenfinLayouts</ p >
3627 < div >
3728 < Button id ="undock " disabled onclick ="undockMe() "> Undock </ Button >
Original file line number Diff line number Diff line change 77 "defaultWidth" : 420 ,
88 "defaultHeight" : 420 ,
99 "url" : " http://localhost:8888/busdemo.html" ,
10- "resizable" : false ,
10+ "resizable" : true ,
1111 "autoShow" : true ,
1212 "saveWindowState" : false ,
1313 "contextMenu" : true
1717 "name" : " layouts" ,
1818 "config" : {
1919 "features" : {
20- "tab" : false ,
20+ "tab" : true ,
2121 "dock" : true
2222 }
2323 }
Original file line number Diff line number Diff line change 77 "defaultWidth" : 420 ,
88 "defaultHeight" : 420 ,
99 "url" : " http://localhost:8888/busdemo.html" ,
10- "resizable" : false ,
10+ "resizable" : true ,
1111 "autoShow" : true ,
1212 "saveWindowState" : false ,
1313 "contextMenu" : true
1717 "name" : " layouts" ,
1818 "config" : {
1919 "features" : {
20- "tab" : false ,
20+ "tab" : true ,
2121 "dock" : true
2222 }
2323 }
You can’t perform that action at this time.
0 commit comments