DataViewsField
Defined in: wp-typia-dataviews/src/index.ts:172
Field definition surface owned by wp-typia.
Remarks
Section titled “Remarks”Rendering hooks return unknown instead of React nodes so this package does
not force React or Gutenberg declarations onto default scaffold consumers.
Type Parameters
Section titled “Type Parameters”TItem extends object = DataViewsRecord
TValue
Section titled “TValue”TValue = unknown
Properties
Section titled “Properties”description?
Section titled “description?”
readonlyoptionaldescription?:string
Defined in: wp-typia-dataviews/src/index.ts:176
elements?
Section titled “elements?”
readonlyoptionalelements?: readonlyDataViewsFieldElement<DataViewsFieldElementValue<TValue>>[]
Defined in: wp-typia-dataviews/src/index.ts:177
enableGlobalSearch?
Section titled “enableGlobalSearch?”
readonlyoptionalenableGlobalSearch?:boolean
Defined in: wp-typia-dataviews/src/index.ts:178
enableHiding?
Section titled “enableHiding?”
readonlyoptionalenableHiding?:boolean
Defined in: wp-typia-dataviews/src/index.ts:179
enableSorting?
Section titled “enableSorting?”
readonlyoptionalenableSorting?:boolean
Defined in: wp-typia-dataviews/src/index.ts:180
filterBy?
Section titled “filterBy?”
readonlyoptionalfilterBy?:DataViewsFieldFilter
Defined in: wp-typia-dataviews/src/index.ts:181
format?
Section titled “format?”
readonlyoptionalformat?:DataViewsFieldFormat
Defined in: wp-typia-dataviews/src/index.ts:182
getValue?
Section titled “getValue?”
readonlyoptionalgetValue?: (context) =>TValue
Defined in: wp-typia-dataviews/src/index.ts:183
Parameters
Section titled “Parameters”context
Section titled “context”DataViewsFieldContext<TItem, TValue>
Returns
Section titled “Returns”TValue
getValueFormatted?
Section titled “getValueFormatted?”
readonlyoptionalgetValueFormatted?: (context) =>string
Defined in: wp-typia-dataviews/src/index.ts:184
Parameters
Section titled “Parameters”context
Section titled “context”DataViewsFieldContext<TItem, TValue>
Returns
Section titled “Returns”string
header?
Section titled “header?”
readonlyoptionalheader?:string
Defined in: wp-typia-dataviews/src/index.ts:185
readonlyid:Extract<keyofTItem>
Defined in: wp-typia-dataviews/src/index.ts:186
isValid?
Section titled “isValid?”
readonlyoptionalisValid?:DataViewsFieldValidationRules<TItem,TValue>
Defined in: wp-typia-dataviews/src/index.ts:187
readonlylabel:string
Defined in: wp-typia-dataviews/src/index.ts:188
placeholder?
Section titled “placeholder?”
readonlyoptionalplaceholder?:string
Defined in: wp-typia-dataviews/src/index.ts:189
readOnly?
Section titled “readOnly?”
readonlyoptionalreadOnly?:boolean
Defined in: wp-typia-dataviews/src/index.ts:190
render?
Section titled “render?”
readonlyoptionalrender?: (context) =>unknown
Defined in: wp-typia-dataviews/src/index.ts:191
Parameters
Section titled “Parameters”context
Section titled “context”DataViewsFieldContext<TItem, TValue>
Returns
Section titled “Returns”unknown
setValue?
Section titled “setValue?”
readonlyoptionalsetValue?: (context) =>TItem
Defined in: wp-typia-dataviews/src/index.ts:192
Parameters
Section titled “Parameters”context
Section titled “context”DataViewsFieldUpdateContext<TItem, TValue>
Returns
Section titled “Returns”TItem
readonlyoptionalsort?: (left,right,direction) =>number
Defined in: wp-typia-dataviews/src/index.ts:193
Parameters
Section titled “Parameters”TItem
TItem
direction
Section titled “direction”"desc" | "asc"
Returns
Section titled “Returns”number
readonlyoptionaltype?:"number"|"boolean"|"object"|"email"|"text"|"array"|"integer"|"url"|"date"|"datetime"|"media"
Defined in: wp-typia-dataviews/src/index.ts:198