Skip to content

Commit

Permalink
fixes documentation on SwagPaginator
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Oct 18, 2020
1 parent 6647f4c commit bade171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ be used. You can override the defaults using the `sort` attribute. Otherwise, a
use SwaggerBake\Lib\Annotation as Swag;
/**
* @Swag\SwagPaginator # default without attributes should work fine in most cases
* @Swag\SwagPaginator(sort={"id","name"}, useSortTextInput=false) # custom example
* @Swag\SwagPaginator(sortEnum={"id","name"}) # custom example
* @Swag\SwagPaginator(useSortTextInput=false) # force a text field instead of enum/dropdown
*/
public function index() {
$employees = $this->paginate($this->Employees);
Expand Down

0 comments on commit bade171

Please sign in to comment.