splitter
| Name space |
rialto.widget |
| FILE |
rialtoEngine\javascript\rialto\widget\container\spliter.js |
| NAME |
splitter |
| INHERITS |
AbstractContainer
|
| VERSION |
1.0 |
| update |
|
| DESCRIPTION |
This object create a splitter |
CONSTRUCTOR
| Name |
Type |
Description |
Default |
| name |
String |
Name of the HTML element |
|
| top |
int |
Top position (in pixel) |
0 |
| left |
int |
Left position (in pixel) |
0 |
| width |
String |
Width (in pixel or %) |
100% |
| height |
String |
Height (in pixel or %) |
100% |
| orientation |
String |
'v' or 'h' indicate the orientation of the splitter (horizontal or vertical) |
h |
| prop |
int |
value beetween 0 and 1 that represents the proportion of the first area of the splitter(0.8 indicate that the first area represents 80% of the splitter) |
0.5 |
| minProp |
int |
number beetween 0 and 1 that represents the minimum value of the proportion |
0 |
| maxProp |
int |
number beetween 0 and 1 that represents the maximum value of the proportion |
1 |
| withImg |
boolean |
if true, splitter have an image to start the drag an drop |
false |
| reverseClose |
boolean |
true if the splitter close to the right or the bottom according to the orientation |
false |
| style |
String |
Represents the style of the splitter. 'normal' style without decoration and '3D' style with decoration |
'normal' |
| parent |
String or reference |
Reference of an HTML or a javascript element parent of the splitter html element |
|
| autoResizableH |
boolean |
if true the component will take all height available in the parent. And it will resize when parent size change |
true |
| autoResizableW |
boolean |
if true the component will take all width available in the parent. And it will resize when parent size change |
true |
Example:
var splitFC = new rialto.widget.Splitter({top:0,left:0,height:'100%',width:'100%',prop:0.6,orientation:'v',
name:'splitFC',parent:splitPG.div1,style:'3D',minProp:0,maxProp:1,withImg:true,reverseClose:false});
PUBLIC METHODS
removeAllChild
if no arguments remove all childs else remove div childs according top the parameters
Parameters:
boolean bDiv1:remove div1 childs if true
boolean bDiv2:remove div2 childs if true
removeDiv1Child
remove first div childs
Parameters:
removeDiv2Child
remove second div childs
Parameters:
fixeProp
this method will allow to change the proportion of the first area
Parameters:
int newProp:value beetween 0 and 1 that represents the new proportion