I have five blocks on UI:
On the basis of rights of user, these blocks will be visible. For example, if an Admin signs in, all blocks will be visible.
- For Manager, I want to show block# 2,4 and 5.
- For Team Lead, I want to show block# 1 and 4.
- For Supervisor, I want to show block#1,3,4,5. And there could be multiple options (a maximum of 2^5).
Currently, I am doing it hard-coded. e.g for Manager, arrangement is defined to be like this:
but currently there is no logic for this arrangement. Should I follow a proper logic/formula for arranging blocks? Or should I decide it how each combination of block will be arranged.
Thanks in advance.