splitter
| Name space |
rialto.widget |
| FILE |
rialtoEngine\javascript\components\containers\spliter.js |
| NAME |
splitter |
| INHERITS |
AbstractContainer
|
| VERSION |
0.86 |
| 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 |
| limInf |
int |
number beetween 0 and 1 that represents the minimum value of the proportion |
0 |
| limSup |
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 |
|
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',limInf:0,limSup:1,withImg:true,reverseClose:false});
PUBLIC METHODS
| Method |
Arguments list |
Return value |
Inherits |
To redefine |
|
fixeProp
|
int newProp |
void |
no |
no |
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