Floris1221 / filso

brevery management
0 stars 0 forks source link

Solve problem of navigate with id to CustomGridView #16

Closed Floris1221 closed 2 years ago

Floris1221 commented 2 years ago

The problem is I want to navigate to CustomGridView but also i have an id so i need to handle beforeEvent but i don't have it there.

  1. I can add this as an exception i this view - this don't require a lot of work, but if this won't repeat in the future?
  2. Move beforeEvent to CustomView and always check if is parameters. This need a lot of work but i'm not sure if it will be work because i require error when some on try to add parameters in link when is not needed
  3. Create Abstract class with beforeEvent inherit CustomView so if you need use parameters you inherit from this new class, but if you not - inherit from CustomView - this option don't require a lot of work and i don't need to change many classes. Problems - what with other classes like CustomGridView because this inherit from CustomView - this is huge problem. Consider how to create this as an interface?? but this need to get method