MCPcopy
hub / github.com/pocketbase/pocketbase / BindForms

Function BindForms

plugins/jsvm/binds.go:834–839  ·  view source on GitHub ↗

BindForms registers various application form constructors. These bindings are mostly used internally and/or preserved for backward compatibility with earlier versions.

(vm *goja.Runtime)

Source from the content-addressed store, hash-verified

832// BindForms registers various application form constructors.
833// These bindings are mostly used internally and/or preserved for backward compatibility with earlier versions.
834func BindForms(vm *goja.Runtime) {
835 registerFactoryAsConstructor(vm, "AppleClientSecretCreateForm", forms.NewAppleClientSecretCreate)
836 registerFactoryAsConstructor(vm, "RecordUpsertForm", forms.NewRecordUpsert)
837 registerFactoryAsConstructor(vm, "TestEmailSendForm", forms.NewTestEmailSend)
838 registerFactoryAsConstructor(vm, "TestS3FilesystemForm", forms.NewTestS3Filesystem)
839}
840
841// BindApis registers $apis.* namespaced object with reusable Web API
842// handlers, middlewares and other related helpers.

Callers 3

TestBindFormsFunction · 0.85
registerMigrationsMethod · 0.85
registerHooksMethod · 0.85

Calls 1

Tested by 1

TestBindFormsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…