Composer
Extends:
The Composer
component displays the composer. It can be loaded with a
content component with load
and then its position/state can be altered with
show
, hide
, close
, minimize
, fullScreen
, and exitFullScreen
.
Member Summary
Public Members | ||
public |
$backdrop: * |
|
public |
Whether or not the composer currently has focus. |
|
public |
handle: * |
|
public |
handlers: {} |
|
public |
prevPosition: * |
|
public |
The composer's "state". |
Method Summary
Public Methods | ||
public |
animateHeightChange(): * Animate the Composer into the new position by changing the height. |
|
public |
Trigger the right animation depending on the desired new position. |
|
public |
changeHeight(height: Integer) Save a new Composer height and update the DOM. |
|
public |
configHandle(vnode: *) Add the necessary event handlers to the composer's handle so that it can be used to resize the composer. |
|
public |
Build an item list for the composer's controls. |
|
public |
defaultHeight(): Integer Default height of the Composer in case none is saved. |
|
public |
focus() Draw focus to the first focusable content element (the text editor). |
|
public |
Hide the Composer backdrop. |
|
public |
Initialize default Composer height. |
|
public |
oncreate(vnode: *) |
|
public |
oninit(vnode: *) |
|
public |
onmousemove(e: Event) Resize the composer according to mouse movement. |
|
public |
Finish resizing the composer when the mouse is released. |
|
public |
onremove(vnode: *) |
|
public |
onupdate(vnode: *) |
|
public |
Show the Composer backdrop. |
|
public |
Update the amount of padding-bottom on the body so that the page's content will still be visible above the composer when the page is scrolled right to the bottom. |
|
public |
Update the DOM to reflect the composer's current height. This involves setting the height of the composer's root element, and adjusting the height of any flexible elements inside the composer's body. |
|
public |
view(): * |
Private Methods | ||
private |
hide() Animate closing the composer. |
|
private |
minimize() Shrink the composer until only its title is visible. |
|
private |
show() Animate the composer sliding up from the bottom to take its normal height. |
Public Members
public $backdrop: * source
public handle: * source
public handlers: {} source
public prevPosition: * source
Public Methods
public animateHeightChange(): * source
Animate the Composer into the new position by changing the height.
Return:
* |
public animatePositionChange(): * source
Trigger the right animation depending on the desired new position.
Return:
* |
public changeHeight(height: Integer) source
Save a new Composer height and update the DOM.
Params:
Name | Type | Attribute | Description |
height | Integer |
public configHandle(vnode: *) source
Add the necessary event handlers to the composer's handle so that it can be used to resize the composer.
Params:
Name | Type | Attribute | Description |
vnode | * |
public defaultHeight(): Integer source
Default height of the Composer in case none is saved.
Return:
Integer |
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public oninit(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public onmousemove(e: Event) source
Resize the composer according to mouse movement.
Params:
Name | Type | Attribute | Description |
e | Event |
public onremove(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public onupdate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public updateBodyPadding() source
Update the amount of padding-bottom on the body so that the page's content will still be visible above the composer when the page is scrolled right to the bottom.
public updateHeight() source
Update the DOM to reflect the composer's current height. This involves setting the height of the composer's root element, and adjusting the height of any flexible elements inside the composer's body.