Aurora.Uix.Templates.Basic.Generators.FormGenerator (Aurora UIX v0.1.4-rc.1)

Copy Markdown

Generates form component modules for the Basic template implementation.

This module provides a macro to generate LiveComponent modules for handling forms in Aurora UIX Basic templates.

Key Features

  • Generates LiveComponent modules for form handling
  • Supports form validation and submission
  • Handles entity creation and updates
  • Enables dynamic section switching
  • Notifies parent components of changes
  • Integrates with Aurora UIX context and helpers

Summary

Functions

Generates a LiveComponent module for form handling.

Functions

generate_module(parsed_opts)

@spec generate_module(map()) :: Macro.t()

Generates a LiveComponent module for form handling.

Parameters

  • parsed_opts (map()) - Form configuration with tag: :form and function references.

Returns

Macro.t() - The generated form component module as quoted code.