OpusCapita / react-crudeditor

OpusCapita React CRUD Editor

Home Page:https://opuscapita.github.io/react-crudeditor/branches/master/?currentComponentName=ContractEditor&maxContainerWidth=100%25&showSidebar=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It needs to be possible to give web element IDs to crud editors' web elements.

blomqsu1 opened this issue · comments

When using crud editor, it needs to be possible to set web element IDs for the elements in crud editor (e.g. buttons, text editors). The element IDs are needed for test automation.

@blomqsu1 what is the desired solution? Hard-coded ids for elements or some kind of API? This is not clear. If you mean hard-coded ids then please specify a list of elements you need the ids set for.

For simple components it would be sufficient to pass unhandled properties onwards to the underlying components. An example of this can be found in react-navigation -component (see the use of “…restProps” in the following: OpusCapita/react-navigation@3d01b6c#diff-4e15e002cf7c6baf766f4bff7dbf394d).

For the search result table we need a way to specify cell properties according to column- and row objects. Something similar to react-table “getTdProps” would be nice (https://github.com/react-tools/react-table).

For custom components defined in our repo we can do these kinds of changes ourselves. For example, we have a CustomerInputComponent, which defines a combobox for customer selection for which these changes can be done by the our team.