Function getAvailableFields

Returns an array of available fields based on the provided features.

  • Parameters

    • fields: IField<any, any>[]

      The list of fields.

    • data: Record<string, any>

      The data object.

    • payload: Record<string, any>

      The payload object.

    • Optional_features: string[] | Record<string, Value> | (() => string[] | Record<string, Value>)

      The optional features.

    Returns {
        hidden: IField<any, any>[];
        visible: IField<any, any>[];
    }

    • The available fields.
    • hidden: IField<any, any>[]
    • visible: IField<any, any>[]