PhoenixKitDocumentCreator.Web.Components.CreateDocumentModal (PhoenixKitDocumentCreator v0.2.6)

Copy Markdown View Source

Multi-step modal for creating documents.

Step 1: Choose blank document or pick a template from Google Drive. Step 2: If template has variables, fill them in. Step 3: Create document and redirect to Google Docs.

Summary

Functions

modal(assigns)

Attributes

  • open (:boolean) (required)
  • templates (:list) - Defaults to [].
  • step (:string) - Defaults to "choose".
  • selected_template (:any) - Defaults to nil.
  • variables (:list) - Defaults to [].
  • creating (:boolean) - Defaults to false.
  • thumbnails (:map) - Defaults to %{}.