maxsokolov / TableKit

Type-safe declarative table views.
MIT License
706 stars 74 forks source link

Add untyped TableRowAction #54

Open Wisors opened 8 years ago

Wisors commented 8 years ago

I want to have ability to add untyped actions to any Row object. Problem: I can't add the same action to differently typed TableRow objects because it required type matching. Even more, it not possible to split code and move code that built views (creating rows with particular cell) away from code that react on user input (some general actions). Intent: Some actions aren't required to know what kind of object is passed to cell or what kind of cell was targeted. Allow to add general action to objects that covered by protocol Row.