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
| Parameter | Type |
|---|---|
object | unknown |
Returns
unknown
_tagBuilder?
optional_tagBuilder?:TagBuilder
Defined in: packages/actionview/dist/helpers/tag-helper.d.ts:5
Inherited from
buttonTag
buttonTag: (
this,contentOrOptions?,options?,block?) =>SafeBuffer
Defined in: packages/actionview/dist/helpers/form-helper.d.ts:17
Parameters
| Parameter | Type |
|---|---|
this | FormTagHelperHost |
contentOrOptions? | unknown |
options? | Record<string, unknown> | null |
block? | () => unknown |
Returns
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
| Parameter | Type |
|---|---|
this | CaptureHelperHost |
block | (...args) => PromiseLike<unknown> |
...args | TArgs |
Returns
Promise<SafeBuffer | null>
Call Signature
<
TArgs>(this,block, ...args):SafeBuffer|null
Type Parameters
| Type Parameter |
|---|
TArgs extends unknown[] |
Parameters
| Parameter | Type |
|---|---|
this | CaptureHelperHost |
block | (...args) => unknown |
...args | TArgs |
Returns
SafeBuffer | null
Inherited from
checkbox
checkbox: (
this,objectName,method,options?,checkedValue?,uncheckedValue?) =>unknown
Defined in: packages/actionview/dist/helpers/form-helper.d.ts:15
Parameters
| Parameter | Type |
|---|---|
this | FormHelperHost |
objectName | unknown |
method | unknown |
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
| Parameter | Type |
|---|---|
this | TagHelperHost |
name | string |
contentOrOptionsWithBlock | unknown |
options | Record<string, unknown> | Hash<string, unknown> | null | undefined |
escape | boolean | undefined |
block | () => PromiseLike<unknown> |
Returns
Promise<SafeBuffer>
Call Signature
(
this,name,contentOrOptionsWithBlock?,options?,escape?,block?):SafeBuffer
Parameters
| Parameter | Type |
|---|---|
this | TagHelperHost |
name | string |
contentOrOptionsWithBlock? | unknown |
options? | Record<string, unknown> | Hash<string, unknown> | null |
escape? | boolean |
block? | () => unknown |
Returns
Inherited from
controller
controller:
unknown
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:6
Inherited from
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
| Parameter | Type |
|---|---|
this | FormTagHelperHost |
objectName | unknown |
methodName | unknown |
...suffixes | unknown[] |
Returns
string
Inherited from
fieldName
fieldName: (
this,objectName,methodName, ...methodNames) =>string
Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:9
Parameters
| Parameter | Type |
|---|---|
this | FormTagHelperHost |
objectName | unknown |
methodName | unknown |
...methodNames | unknown[] |
Returns
string
Missing Rails Args
join — PERMANENT
Inherited from
fieldsFor
fieldsFor: (
this,recordName,recordObject?,options?,block?) =>SafeBuffer|null
Defined in: packages/actionview/dist/helpers/form-helper.d.ts:11
Parameters
| Parameter | Type |
|---|---|
this | FormHelperHost |
recordName | unknown |
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
| Parameter | Type |
|---|---|
this | FormHelperHost |
objectName | unknown |
method | unknown |
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
| Parameter | Type |
|---|---|
this | FormHelperHost |
objectName | unknown |
method | unknown |
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
| Parameter | Type |
|---|---|
this | FormHelperHost |
objectName | unknown |
method | unknown |
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
| Parameter | Type |
|---|---|
this | FormHelperHost |
objectName | unknown |
method | unknown |
tagValue | unknown |
options? | Record<string, unknown> |
Returns
unknown
request?
optionalrequest?:unknown
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:7
Inherited from
requestForgeryProtectionToken?
optionalrequestForgeryProtectionToken?:unknown
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:14
Inherited from
FormTagHelperHost.requestForgeryProtectionToken
select?
optionalselect?: (this,object,method,choices?,options?,htmlOptions?,block?) =>unknown
Defined in: packages/actionview/dist/helpers/form-helper.d.ts:14
Parameters
| Parameter | Type |
|---|---|
this | TagHelperHost |
object | unknown |
method | unknown |
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
Methods
_backUrl()
_backUrl():
string
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:8
Returns
string
Inherited from
_filteredReferrer()
_filteredReferrer():
string|null
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:9
Returns
string | null
Inherited from
FormTagHelperHost._filteredReferrer
formAuthenticityToken()?
optionalformAuthenticityToken(options):string|Promise<string>
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:11
Parameters
| Parameter | Type |
|---|---|
options | { formOptions: Record<string, unknown>; } |
options.formOptions | Record<string, unknown> |
Returns
string | Promise<string>
Inherited from
FormTagHelperHost.formAuthenticityToken
isProtectAgainstForgery()?
optionalisProtectAgainstForgery():boolean
Defined in: packages/actionview/dist/helpers/url-helper.d.ts:10
Returns
boolean
Inherited from
FormTagHelperHost.isProtectAgainstForgery
mainApp()?
optionalmainApp(): {trailsDirectUploadsUrl:unknown; }
Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:16
Returns
{ trailsDirectUploadsUrl: unknown; }
trailsDirectUploadsUrl()
trailsDirectUploadsUrl():
unknown
Returns
unknown
Inherited from
pathToImage()
pathToImage(
source,options?):string
Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:13
Parameters
| Parameter | Type |
|---|---|
source | unknown |
options? | Record<string, unknown> |
Returns
string
Inherited from
polymorphicPath()?
optionalpolymorphicPath(record,options):string
Defined in: packages/actionview/dist/helpers/form-helper.d.ts:21
Parameters
| Parameter | Type |
|---|---|
record | unknown |
options | Record<string, unknown> |
Returns
string
safeJoin()
safeJoin(
array,sep?):SafeBuffer
Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:14
Parameters
| Parameter | Type |
|---|---|
array | unknown[] |
sep? | string | SafeBuffer | null |
Returns
Inherited from
submitTag()
submitTag(
value?,options?):SafeBuffer
Defined in: packages/actionview/dist/helpers/form-tag-helper.d.ts:12
Parameters
| Parameter | Type |
|---|---|
value? | unknown |
options? | Record<string, unknown> | Hash<string, unknown> |
Returns
Inherited from
trailsDirectUploadsUrl()?
optionaltrailsDirectUploadsUrl():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
| Parameter | Type |
|---|---|
options | unknown |
Returns
string