Grid API is dependent on properties set #12099
hanastasov
started this conversation in
General
Replies: 1 comment 3 replies
-
If such a change should affect only public API, then it is only the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment, the grid API (probably other components as well) expects a different type of parameter, dependent on if a certain property is set to the grid.
Example: The
getRowByKey
method is implemented in a way that it accepts as a parameter both the primary key field value (if exists), or the row data object itself, if primary key is not set:An implementation, that is agnostic to properties set to the grid, should always accepts the same type of parameter and not branch the logic inside based on the type of parameter sent.
Beta Was this translation helpful? Give feedback.
All reactions