Skip to content

Feature Request: Make generic Tab object handling easier #395

@voltaek

Description

@voltaek

When instantiating an object of any of the various types of Tabs in the C# SDK, e.g. Checkbox, Text, SignHere, etc., it would be great if the TabType property of them was already populated with the underlying tab type that the API recognizes, e.g. "checkbox", "text", "signHere". As the tab type is already determined by using that specific class anyways, this property seems like it could just be a public constant string property for each class. The result of this would be that when serializing the object to JSON for use later, the 'tabType' property key and value would be included, and the JSON could then be easily used generically - with no other data required - by this or another SDK (such as the PHP one) to parse out the 'tabType' property and know which class to instantiate from the SDK and then populate with the property values from the same JSON.

A secondary part to go along with this that would be appreciated is to have all the Tab classes conform to an interface that contains at least some of the properties that all the tab type classes share. This would streamline generic handling of class objects when instantiating from JSON and other such situation where we're dynamically creating tab object from stored data. I know that the different tab types have a variety of differing properties, so even just some of the overlapping ones being interface properties would be greatly appreciated. Some properties that could be nice to have on the interface would be: tab type, tab ID, document ID, tab label, tab group labels, tab order, anchor string, anchor units, anchor offsets, x and y position, font, tooltip, name, etc. (I'm pretty sure most of these are used across all tabs, and I'm sure there are more that they all have, but I can't find any documentation on what is or is not guaranteed to be shared across them all in the API docs).

Thank you.

Metadata

Metadata

Assignees

Labels

area-apiall issues related to eSign api

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions