Skip to content

Address translation helpers #22

Description

@wojciechczerniak

Description

This was already committed to the master branch on Friday.

public simpleCellAddressToString(address: SimpleCellAddress, sheet: number): string
public simpleCellAddressFromString(stringAddress: string, sheet: number): SimpleCellAddress

I'm just wondering if it's necessary to validate the sheet number? Shouldn't this be a static that just parses the address both ways? Why do we need a fallback?

If the sheet number is missing we can add it later. Moreover, the missing sheet property might be the information of its own.

Also, we don't always know the sheet id (number) might be necessary to have a helper to translate sheet name to sheet id. Done in #32

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIPublic methods and properties

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions