Skip to content

EntityTypes in APICellBlock in src-js #78

@anjanvb

Description

@anjanvb

Would it be a good idea to add EntityTypes to ApiCellBlock, in src-js?. EntityTypes for BlockType : "CELL" can be useful to find out COLUMN_HEADERS instead of assuming that cellsAt(1, null) will always be the header since there are misses in detecting headers in certain cases. This will give developers the flexibility to use cellsAt(1, null) as headers if cell block with "EntityTypes": [ "COLUMN_HEADER" ] is missing.

{
    "BlockType": "CELL",
    "Confidence": 93.32925415039062,
    "RowIndex": 1,
    "ColumnIndex": 1,
    "RowSpan": 1,
    "ColumnSpan": 1,
    "Geometry": {...},
    "Id": "cda64a58-28d2-47d9-857e-bd7fd9f99d57",
    "Relationships": [
                {
                    "Type": "CHILD",
                    "Ids": [  "b49e883c-bd8b-43e2-aed6-0aa93a52b2b1" ]
                }
    ],
    "EntityTypes": [  "COLUMN_HEADER" ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjavascriptRelates to the JavaScript/TypeScript version of TRP

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions