JavaScript DHTML/SmartClient/VStack

Материал из Web эксперт
Перейти к: навигация, поиск

Create vertical stack

   <source lang="html4strict">


<HTML><HEAD>

 <SCRIPT>var isomorphicDir="isomorphic/";</SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
 <SCRIPT SRC=isomorphic/skins/standard/load_skin.js></SCRIPT>

</HEAD><BODY BGCOLOR="silver"> <SCRIPT> isc.defineClass("BlueBox", "Label").addProperties({

   align:"center",
   border:"1px solid #808080",
   backgroundColor:"lightblue",
   styleName:"blackText"

}) isc.VStack.create({

   showEdges:true,
   width:150, membersMargin:5,  layoutMargin:10,
   members:[
       isc.BlueBox.create({height:40, contents:"height 40"}),
       isc.BlueBox.create({height:80, contents:"height 80"}),
       isc.BlueBox.create({height:160, contents:"height 160"})
   ]

})


</SCRIPT> </BODY> </HTML>

 </source>