-
-
Couldn't load subscription status.
- Fork 56
Adding model-namespace, columns and action options to Generator #12
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
Conversation
src/Generators/stubs/datatables.stub
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing function call here. I suggest you add a query before select for better IDE support.
$query = ModelName::query()->select($this->getColumns());
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the buttons config namespace and maybe set the key to stub for clarity?
return $config->get('datatables-buttons.stub')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a better description?
Force the use of singular in filename.
to something like:
Path to action column template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, i've totally messed this, it's a copy/paste of an other package, but i've forgotten to change the description
@lk77 as per testing the PR looks good with some minor changes needed. Looking forward to merging this. 👍
Correcting wrong description and wrong query in datatables.stub
@yajra I've pushed your changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excess indent. Please reduce one tab/4 spaces back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 12 is the proper indention here to have a perfectly aligned columns. $indention = 12
@lk77 works like a charm as per testing. Need some more minor updates for proper code style for the generated code and this should be good to go. Thanks a lot!
@yajra it's done !
Released on v1.3.0 🚀 !
BTW, if you can. Please also send a PR for the official docs @ https://github.com/yajra/laravel-datatables-docs. Thanks!
Ok, it's done. PR #3 on documentation.
Tell me if something is wrong, english is not my first language.
Thanks
Uh oh!
There was an error while loading. Please reload this page.
Hello,
i've added some options to the DataTable Generator :
i've also introduced a way to use a custom datatables.stub.
if something is wrong, tell me and i will correct it.
thanks