Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tutorial step by step #6

Open
macagua opened this issue Apr 9, 2016 · 3 comments
Open

Add a tutorial step by step #6

macagua opened this issue Apr 9, 2016 · 3 comments

Comments

@macagua
Copy link

macagua commented Apr 9, 2016

Hi @cornernote

First of all thanks for the extension yii2-dashboard, seems very potential for a development I'm doing with Yii2 framework.

I have read the yii2-dashboard extension documentation, I used the yii2-dashboard demonstration website before installing it locally on my Yii2 basic project template.

I have managed to enable settings yii2-dashboard and via yii2 migrations recreate the structure of your website demonstration following screenshots that have published.

Result of these practices have published this Yii2 project here: https://github.com/macagua/my_yii2dashboard_demo

Yii2 project have the following characteristics:

Until now it works perfectly the extension of yii2-dashboard, And in my_yii2dashboard_demo repository currently me in this screenshot:

Dashboard Update

Then in the extension documentation it does not indicate how to achieve this view:
Dashboard View

As my object play configurations and source code of the demonstration site, to understand the operation of this extension:

As I understand the demonstration site you are consulted the workflow of a "Job" that contains three status / transitions "requested", "scheduled" and "collected".

So here I have my questions for you:

  • You use the extension yii2-workflow?
  • As I generate the representation "Dashboard View" with the panel "Collection Scheduled"? I explain better, 'jobStatus' => 'JobWorkflow / scheduled' and 'JobType' => 'collect' are Controller actions? I guess require some kind of view?

Please, at this point it would be great to help me to understand the operation of the extension, as I do not get some yii2 source code in reference to achieve the proper functioning of the panels of the dashboard extension.

Besides that I can help you make an initial version of a tutorial for yii2-dashboard.

Thanks

@cornernote
Copy link
Owner

Hi @macagua,

Thanks for your feedback. I will try to answer your questions below, but please let me know if I miss anything.

Then in the extension documentation it does not indicate how to achieve this view:

You need to write your own panel view file, as described here (see Panel View):
https://cornernote.github.io/yii2-dashboard/docs/panels/

You use the extension yii2-workflow?

Yes, but it's not required. It just happened to be used for the example.

As I generate the representation "Dashboard View" with the panel "Collection Scheduled"? I explain better, 'jobStatus' => 'JobWorkflow / scheduled' and 'JobType' => 'collect' are Controller actions? I guess require some kind of view?

Yes, but these are just for the screenshot/demo, you don't need these in your application (if you do, it's not usage of dashboard, it's usage of workflow).

@macagua
Copy link
Author

macagua commented Apr 19, 2016

Hi @cornernote

For the panel "Collection Scheduled" example do you using the GridView::widget for create the grid table?

@cornernote
Copy link
Owner

@macagua, yep I used GridView::widget. You can however render anything you want in the panel's view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants