PhoenixKitComments.Web.Settings (PhoenixKitComments v0.2.14)

Copy Markdown View Source

LiveView for Comments module settings management.

Manages:

  • comments_enabled toggle
  • comments_moderation toggle
  • comments_max_depth input
  • comments_max_length input

Route

Mounted at {prefix}/admin/settings/comments.

Summary

Functions

Callback implementation for Phoenix.LiveView.render/1.

Lightweight in-card section heading (icon + title + rule). Local copy of core's Core.FormSection.section_header/1 under a distinct name, so this package renders identically without requiring a core release that exports it (and won't conflict with the core import once it does).

Functions

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.

settings_section_header(assigns)

Lightweight in-card section heading (icon + title + rule). Local copy of core's Core.FormSection.section_header/1 under a distinct name, so this package renders identically without requiring a core release that exports it (and won't conflict with the core import once it does).

Attributes

  • icon (:string) (required)
  • title (:string) (required)
  • class (:string) - Defaults to nil.