-
Notifications
You must be signed in to change notification settings - Fork 109
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
include column title with request #52
Comments
You can send it yourself (see https://github.com/Kyslik/column-sortable#blade-extension)
should generate:
Also take a look at https://github.com/Kyslik/column-sortable/blob/L5.4/src/config/columnsortable.php#L67 you can set If that is not what you meant explain further, otherwise just close :). |
I have used that to pass the request input (other filters etc) however it becomes problematic because the title parameters need to be merged with this request data array I have tried which works for the first one but then somehow it will continue to use the first column selected (not removing the current title and replacing with the new one) I have tested creating another link with just: The sortable link for all headers still contains whatever the $request->title value is: Which leads me to believe your function includes the wrong value where there are keys that match the request input. eg. if $request->title is set to TEST then the sortable link will contain: I was kinda hoping avoid the double entry of the title, and having to merge the request array and exclude the request title adds to this burden. Although this may not be so bad if the link function worked as it should using L5.2 branch |
Gottcha! Now I understand. What about
I might try to add config value in order to set boolean value if user want to inject title in request. |
that is pretty much what I was after |
Its done, I just push new release after test pass. |
I have implemented your changes and it seems to be working perfectly, thank you so much 😊 |
No problem. Have a good artisan adventures. |
* master: Apply CI Update license Implement #52, introduce new configuration key-value pair Update travis and readme badge Change min-stability to dev and version of testbench Change min-stability to dev
* L5.3: Add test Extract methods Allow columns that have value of 0 to be present Update license Implement #52, introduce new configuration key-value pair Update readme badge, update travis.yml, simplify queryJoinBuilder() Update readme Branch out for specific Laravel version # Conflicts: # README.md # composer.json # src/ColumnSortable/SortableLink.php # tests/SortableLinkTest.php
* L5.3: Add test Extract methods Allow columns that have value of 0 to be present Update license Implement #52, introduce new configuration key-value pair Update readme badge, update travis.yml, simplify queryJoinBuilder() Update readme Branch out for specific Laravel version # Conflicts: # .travis.yml # README.md # composer.json # src/ColumnSortable/SortableLink.php # tests/SortableLinkTest.php
* L5.2: Update license Implement #52, introduce new configuration key-value pair Update readme badge, update travis.yml, simplify queryJoinBuilder() Readme update Branch out for specific Laravel version # Conflicts: # .travis.yml # README.md # composer.json
Hi,
I am trying to show the sort criteria and It would be nice if the 'title' used in the
@sortablelink()
was passed in the request in addition to sort and order so that it can be shown.I am currently using
ucfirst($request->sort)
, however this only works if the column name is the same as the title which in some cases will produce differencesThe text was updated successfully, but these errors were encountered: