Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionView / FormHelperHost

Interface: FormHelperHost ​

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:10

Extends ​

Properties ​

_objectForFormBuilder ​

_objectForFormBuilder: (object) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:19

Parameters ​

ParameterType
objectunknown

Returns ​

unknown


_tagBuilder? ​

optional _tagBuilder?: TagBuilder

Defined in: packages/actionview/dist/helpers/tag-helper.d.ts:5

Inherited from ​

FormTagHelperHost._tagBuilder


buttonTag ​

buttonTag: (this, contentOrOptions?, options?, block?) => SafeBuffer

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:17

Parameters ​

ParameterType
thisFormTagHelperHost
contentOrOptions?unknown
options?Record<string, unknown> | null
block?() => unknown

Returns ​

SafeBuffer


capture ​

capture: {<TArgs>(this, block, ...args): Promise<SafeBuffer | null>; <TArgs>(this, block, ...args): SafeBuffer | null; }

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:11

Call Signature ​

<TArgs>(this, block, ...args): Promise<SafeBuffer | null>

Type Parameters ​
Type Parameter
TArgs extends unknown[]
Parameters ​
ParameterType
thisCaptureHelperHost
block(...args) => PromiseLike<unknown>
...argsTArgs
Returns ​

Promise<SafeBuffer | null>

Call Signature ​

<TArgs>(this, block, ...args): SafeBuffer | null

Type Parameters ​
Type Parameter
TArgs extends unknown[]
Parameters ​
ParameterType
thisCaptureHelperHost
block(...args) => unknown
...argsTArgs
Returns ​

SafeBuffer | null

Inherited from ​

FormTagHelperHost.capture


checkbox ​

checkbox: (this, objectName, method, options?, checkedValue?, uncheckedValue?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:15

Parameters ​

ParameterType
thisFormHelperHost
objectNameunknown
methodunknown
options?Record<string, unknown>
checkedValue?unknown
uncheckedValue?unknown

Returns ​

unknown


contentTag ​

contentTag: {(this, name, contentOrOptionsWithBlock, options, escape, block): Promise<SafeBuffer>; (this, name, contentOrOptionsWithBlock?, options?, escape?, block?): SafeBuffer; }

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:10

Call Signature ​

(this, name, contentOrOptionsWithBlock, options, escape, block): Promise<SafeBuffer>

Parameters ​
ParameterType
thisTagHelperHost
namestring
contentOrOptionsWithBlockunknown
optionsRecord<string, unknown> | Hash<string, unknown> | null | undefined
escapeboolean | undefined
block() => PromiseLike<unknown>
Returns ​

Promise<SafeBuffer>

Call Signature ​

(this, name, contentOrOptionsWithBlock?, options?, escape?, block?): SafeBuffer

Parameters ​
ParameterType
thisTagHelperHost
namestring
contentOrOptionsWithBlock?unknown
options?Record<string, unknown> | Hash<string, unknown> | null
escape?boolean
block?() => unknown
Returns ​

SafeBuffer

Inherited from ​

FormTagHelperHost.contentTag


controller ​

controller: unknown

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:6

Inherited from ​

FormTagHelperHost.controller


defaultFormBuilder ​

defaultFormBuilder: unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:20


fieldId ​

fieldId: (this, objectName, methodName, ...suffixes) => string

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:8

Parameters ​

ParameterType
thisFormTagHelperHost
objectNameunknown
methodNameunknown
...suffixesunknown[]

Returns ​

string

Inherited from ​

FormTagHelperHost.fieldId


fieldName ​

fieldName: (this, objectName, methodName, ...methodNames) => string

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:9

Parameters ​

ParameterType
thisFormTagHelperHost
objectNameunknown
methodNameunknown
...methodNamesunknown[]

Returns ​

string

Missing Rails Args ​

join — PERMANENT

Inherited from ​

FormTagHelperHost.fieldName


fieldsFor ​

fieldsFor: (this, recordName, recordObject?, options?, block?) => SafeBuffer | null

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:11

Parameters ​

ParameterType
thisFormHelperHost
recordNameunknown
recordObject?unknown
options?Record<string, unknown>
block?(builder) => unknown

Returns ​

SafeBuffer | null


fileField ​

fileField: (this, objectName, method, options?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:13

Parameters ​

ParameterType
thisFormHelperHost
objectNameunknown
methodunknown
options?Record<string, unknown>

Returns ​

unknown


hiddenField ​

hiddenField: (this, objectName, method, options?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:12

Parameters ​

ParameterType
thisFormHelperHost
objectNameunknown
methodunknown
options?Record<string, unknown>

Returns ​

unknown


label ​

label: (this, objectName, method, contentOrOptions?, options?, block?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:18

Parameters ​

ParameterType
thisFormHelperHost
objectNameunknown
methodunknown
contentOrOptions?unknown
options?Record<string, unknown> | null
block?(builder) => unknown

Returns ​

unknown


outputBuffer ​

outputBuffer: OutputBuffer | null

Defined in: packages/actionview/dist/helpers/capture-helper.d.ts:5

Inherited from ​

FormTagHelperHost.outputBuffer


radioButton ​

radioButton: (this, objectName, method, tagValue, options?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:16

Parameters ​

ParameterType
thisFormHelperHost
objectNameunknown
methodunknown
tagValueunknown
options?Record<string, unknown>

Returns ​

unknown


request? ​

optional request?: unknown

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:7

Inherited from ​

FormTagHelperHost.request


requestForgeryProtectionToken? ​

optional requestForgeryProtectionToken?: unknown

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:14

Inherited from ​

FormTagHelperHost.requestForgeryProtectionToken


select? ​

optional select?: (this, object, method, choices?, options?, htmlOptions?, block?) => unknown

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:14

Parameters ​

ParameterType
thisTagHelperHost
objectunknown
methodunknown
choices?unknown
options?Record<string, unknown>
htmlOptions?Record<string, unknown>
block?() => unknown

Returns ​

unknown


viewFlow ​

viewFlow: OutputFlow

Defined in: packages/actionview/dist/helpers/capture-helper.d.ts:6

Inherited from ​

FormTagHelperHost.viewFlow

Methods ​

_backUrl() ​

_backUrl(): string

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:8

Returns ​

string

Inherited from ​

FormTagHelperHost._backUrl


_filteredReferrer() ​

_filteredReferrer(): string | null

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:9

Returns ​

string | null

Inherited from ​

FormTagHelperHost._filteredReferrer


formAuthenticityToken()? ​

optional formAuthenticityToken(options): string | Promise<string>

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:11

Parameters ​

ParameterType
options{ formOptions: Record<string, unknown>; }
options.formOptionsRecord<string, unknown>

Returns ​

string | Promise<string>

Inherited from ​

FormTagHelperHost.formAuthenticityToken


isProtectAgainstForgery()? ​

optional isProtectAgainstForgery(): boolean

Defined in: packages/actionview/dist/helpers/url-helper.d.ts:10

Returns ​

boolean

Inherited from ​

FormTagHelperHost.isProtectAgainstForgery


mainApp()? ​

optional mainApp(): { trailsDirectUploadsUrl: unknown; }

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:16

Returns ​

{ trailsDirectUploadsUrl: unknown; }

trailsDirectUploadsUrl() ​

trailsDirectUploadsUrl(): unknown

Returns ​

unknown

Inherited from ​

FormTagHelperHost.mainApp


pathToImage() ​

pathToImage(source, options?): string

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:13

Parameters ​

ParameterType
sourceunknown
options?Record<string, unknown>

Returns ​

string

Inherited from ​

FormTagHelperHost.pathToImage


polymorphicPath()? ​

optional polymorphicPath(record, options): string

Defined in: packages/actionview/dist/helpers/form-helper.d.ts:21

Parameters ​

ParameterType
recordunknown
optionsRecord<string, unknown>

Returns ​

string


safeJoin() ​

safeJoin(array, sep?): SafeBuffer

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:14

Parameters ​

ParameterType
arrayunknown[]
sep?string | SafeBuffer | null

Returns ​

SafeBuffer

Inherited from ​

FormTagHelperHost.safeJoin


submitTag() ​

submitTag(value?, options?): SafeBuffer

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:12

Parameters ​

ParameterType
value?unknown
options?Record<string, unknown> | Hash<string, unknown>

Returns ​

SafeBuffer

Inherited from ​

FormTagHelperHost.submitTag


trailsDirectUploadsUrl()? ​

optional trailsDirectUploadsUrl(): unknown

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:15

Returns ​

unknown

Inherited from ​

FormTagHelperHost.trailsDirectUploadsUrl


urlFor() ​

urlFor(options): string

Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:7

Parameters ​

ParameterType
optionsunknown

Returns ​

string

Inherited from ​

FormTagHelperHost.urlFor