new Container(desktop, data, elt)
- Description:
Container constructor
Parameters:
Name | Type | Description |
---|---|---|
desktop |
Simplicite.Diagram.Desktop | desk manager |
data |
Object | Container data { title, type, template, x, y, w, h... } |
elt |
$ | optional DOM object to synchronize |
Methods
(static) attach()
- Description:
Attach
(static) bind()
- Description:
Bind
(static) contains()
- Description:
Is container inside this container?
(static) contentBound()
- Description:
Bounded rectangle of all contents
(static) detach()
- Description:
Detach
(static) draw()
- Description:
Draw
(static) load()
- Description:
Load
(static) position(x, y, rel)
- Description:
Set/get position of container
Parameters:
Name | Type | Description |
---|---|---|
x |
number | Horizontal coordinate |
y |
number | Vertical coordinate |
rel |
boolean | Relative? |
(static) remove()
- Description:
Remove
(static) resizePool()
- Description:
Re-align all pools
(static) setPool()
- Description:
Change the pool position if > 0
(static) size(w, h)
- Description:
Set/Get size of container
Parameters:
Name | Type | Description |
---|---|---|
w |
number | Width |
h |
number | Height |
(static) sizeBorder(w, h)
- Description:
Size border
Parameters:
Name | Type | Description |
---|---|---|
w |
number | Width |
h |
number | Height |
(static) style()
- Description:
Style
(static) toggleMenu()
- Description:
Toggle menu