PhoenixKitKnowledgeBase.Web.Components (PhoenixKitKnowledgeBase v0.1.0)

Copy Markdown View Source

Function components to drop into a host app's pages.

<PhoenixKitKnowledgeBase.Web.Components.notes_panel
  id="client-notes"
  current_user={@current_scope.user}
  path={["CRM", "Clients", @client.id]}
  label="Notes"
/>

See PhoenixKitKnowledgeBase.Web.NotesPanel for every attribute.

Summary

Functions

Notes for one place, kept in a vault folder named by path. See the module doc.

Functions

notes_panel(assigns)

Notes for one place, kept in a vault folder named by path. See the module doc.

Attributes

  • id (:string) (required)
  • current_user (:any) (required)
  • path (:list) (required)
  • label (:string) - Defaults to nil.
  • show_label (:boolean) - Defaults to true.
  • visibility_options (:list) - Defaults to [:private, :shared].
  • default_visibility (:atom) - Defaults to :shared. Must be one of :private, or :shared.
  • poll (:integer) - Defaults to 5000.
  • class (:string) - Defaults to nil.