Dashboard move widgets or switch on/off

Post Reply
Krisztyan
Posts: 22
Joined: 19 Jan 2021, 21:16

16 Jun 2021, 18:16

Hello,

we have a dashboard almost like the same as on the rain example.

https://www.primefaces.org/layouts/rain

Is it possible to add/delete orders or best selling parts from the dashboard?
Is it possible to move them around on the screen via drag and drop or somehow?

At the moment our dashboard is static. We can not move the widgets.

Thank you in advance and best regards,
Krisztyan

siris
Posts: 242
Joined: 29 Jul 2019, 13:57

21 Jun 2021, 09:16

Hi,

Yes, you can apply our design to your own software using your own dynamic code. You can get help from below link for the drag drop feature.
https://www.primefaces.org/showcase/ui/ ... fwid=c76cd
Other than that, there is no feature.

Best Regards,

Krisztyan
Posts: 22
Joined: 19 Jan 2021, 21:16

21 Jun 2021, 10:57

Hi Siris,

thank you for your answer.

Best regards,
Krisztyan

Krisztyan
Posts: 22
Joined: 19 Jan 2021, 21:16

21 Jun 2021, 11:34

Hello Siris,

thank you for the example in the showcase.

Our design is quite similar to yours in this link. https://www.primefaces.org/layouts/rain

I checked the example for drag and drop in the showcases what you have sent.
I see that the same type of widgets are used and the widgets are sorted into columns.

Would this approach would also work in case of different type of widgets?

I was wondering that the drag and drop would work in the rain example https://www.primefaces.org/layouts/rain
where I would like to e.g: change the location of the Orders diagram to the Last reviews section?

Do you have a tips perhaps how the switching on and off a dashboard tile could be implemented?
I would like to remove and add dashboard tiles from/to my dashboard and also move them by drag and drop.

Best regards,
Krisztyan

siris
Posts: 242
Joined: 29 Jul 2019, 13:57

21 Jun 2021, 13:36

Hi,
where I would like to e.g: change the location of the Orders diagram to the Last reviews section?
If you want to show the user in different order without drag drop, you can change the order of the codes. And if you change these divs also please change "p-col-12 p-md-6 p-xl-3" grid classes to fit the page. For detailed information, you can get help from the below links:
https://www.primefaces.org/showcase/pri ... fwid=9ac70
https://www.primefaces.org/showcase/pri ... fwid=9ac70
Do you have a tips perhaps how the switching on and off a dashboard tile could be implemented?
You can use p:outputpanel with rendered attribute but this is not a dynamic implementation. You need to implement statically every situation.

You can implement dynamically using a structure like in the dashboard demo in the showcase. Since here is a rain template forum, I can't help with non-template related issues. If you want, you can get help on how to implement dynamically in the PrimeFaces forum: viewforum.php?f=3

Best Regards,

Krisztyan
Posts: 22
Joined: 19 Jan 2021, 21:16

21 Jun 2021, 13:51

Thank you Siris

siris
Posts: 242
Joined: 29 Jul 2019, 13:57

22 Jun 2021, 09:31

You are welcome!

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests