Skip to content

c-admin-method

Provides an interface for invoking a method and rendering its result, designed to be use in an admin page.

For each parameter of a method, a c-input will be rendered to accept the input of that parameter. A button is provided to trigger an invocation of the method, progress and errors are rendered with a c-loader-status, and results are rendered with c-display.

Examples

template
<c-admin-method :model="person" for="setTitle" auto-reload-model />

Props

for: string | Method

A metadata specifier for the method. One of:

  • A string with the name of the method belonging to model.
  • A direct reference to a method's metadata object.
  • A string in dot-notation that starts with a type name and ending with a method name.

model: ViewModel | ListViewModel

An ViewModel or ListViewModel owning the method and API Caller that was specified by the for prop.

autoReloadModel?: boolean = false

True if the model should have its $load invoked after a successful invocation of the method.


Coalesce is a free and open-source framework created by IntelliTect to fill our desire to create better apps, faster. IntelliTect is a high-end software architecture and development consulting firm based in Spokane, Washington.

If you're looking for help with your software project, whether it be a Coalesce application, other technologies, or even just an idea, reach out to us at info@intellitect.com — we'd love to start a conversation! Our clients range from Fortune 100 companies to local small businesses and non-profits.