defineView
Melony uses the defineView
function to create different types of views. This function takes three arguments:
type
: A string specifying the view type ("list", "form", or "detail").config
: An object containing the configuration for the view.action
: A server action function that handles data operations for the view.