ludo.Window

ludo.


Usage: new ludo.Window({ ... });

Extends: ludo.FramedView

Displays a movable View with Title Bar.

Parameters:
Name Type Description
config Object
Properties
Name Type Description
resizable Boolean

true to make the window resizable, default = true

movable Boolean

true to make the window movable, default = true

hideBodyOnMove Boolean

true to display a dotted rectangle when moving the window. The window will be positioned on mouse up.

resizeLeft Boolean

true make the window resizable from left edge, default = true

resizeTop Boolean

true make the window resizable from top edge, default = true.

resizeRight Boolean

true make the window resizable from right edge, default = true.

resizeBottom Boolean

true make the window resizable from bottom edge, default = true.

preserveAspectRatio Boolean

Preserve aspect ratio(width/height) when resizing.

closable Boolean

True to make the window closable. This will add a close button to the title bar.

minimizable Boolean

True to make the window minimizable. This will add a minimize button to the title bar.

layout.minWidth Number

Optional minimum width of window in pixels.

layout.minHeight Number

Optional minimum height of window in pixels.

layout.maxWidth Number

Optional maximum width of window in pixels.

layout.maxHeight Number

Optional maximum height of window in pixels.

Source:
Example
new ludo.Window({
	   layout:{
	        type:'linear', orientation:'horizontal',
         width:500,height:500,
	        left:100,top:100

	   },
	   children:[
	   {
		   	layout:{
		   		weight:1
			},
		   html : 'Panel 1'
	   },{
		   	layout:{
		   		weight:1
			},
		   	html: 'Panel 2'
	   }]
	});

Methods


showAt(x, y)

Show window at x and y position

Parameters:
Name Type Description
x Number
y Number
Source:
Returns:

void


showCentered()

Show window centered on screen

Source:
Returns:

void