EditPostComposer
Extends:
The EditPostComposer
component displays the composer content for editing a
post. It sets the initial content to the content of the post that is being
edited, and adds a header control to indicate which post is being edited.
Attrs
- All of the attrs for ComposerBody
post
Static Method Summary
Static Public Methods | ||
public static |
initAttrs(attrs: *) |
Method Summary
Public Methods | ||
public |
Get the data to submit to the server when the post is saved. |
|
public |
headerItems(): * |
|
public |
jumpToPreview(e: *) Jump to the preview when triggered by the text editor. |
|
public |
onsubmit() |
Inherited Summary
From class ComposerBody | ||
public |
composer: * |
|
public |
Whether or not the component is loading. |
|
public |
hasChanges(): String Check if there is any unsaved data. |
|
public |
Build an item list for the composer's header. |
|
public |
loaded() Stop loading. |
|
public |
oninit(vnode: *) |
|
public abstract |
onsubmit() Handle the submit event of the text editor. |
|
public |
view(): * |
Static Public Methods
public static initAttrs(attrs: *) source
Params:
Name | Type | Attribute | Description |
attrs | * |
Public Members
public loading: boolean source
Whether or not the component is loading.
Override:
ComposerBody#loadingPublic Methods
public headerItems(): * source
Build an item list for the composer's header.
Override:
ComposerBody#headerItemsReturn:
* |
public jumpToPreview(e: *) source
Jump to the preview when triggered by the text editor.
Params:
Name | Type | Attribute | Description |
e | * |