Forms / Composer

Forms

Composer

Reply composer with attach and split send.

import { EcoComposer } from "vue-ecosphere"

Composer

Write something and press Send (or Ctrl/⌘+Enter). The chevron schedules it.

Sent: [] · attach pressed 0×

API

NameTypeDefaultDescription
v-modelstring""The draft. Send stays disabled while it is blank.
placeholder / labelstring"Write your reply" / "Your reply"Placeholder and accessible name of the textarea.
whenstring—Scheduled send time shown in cwhen.
attachable / schedulablebooleantrueShow the attach button / the schedule chevron.
scheduleOpenbooleanfalsearia-expanded on the chevron while your schedule menu is open.
clearOnSendbooleantrueEmpty the draft after send.
sendLabel / attachLabel / scheduleLabelstring—Button text and names.
disabledbooleanfalseDisable the whole composer.
@send(text: string) => void—Send, or Ctrl/⌘+Enter.
@attach / @schedule() => void—Attach button / schedule chevron.
#top / #tools / #scheduleslot—Above the textarea / start of the toolbar / after the send button (for a menu).