You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would expect public member functions below... public function labelPrevious(string|Stringable|null $labelPrevious): self {$new=clone $this;$new->labelPrevious=$labelPrevious;return $new;} public function labelNext (string|Stringable|null $labelNext): self {$new=clone $this;$new->labelNext=$labelNext; return $new;} public function labelFirst (string|Stringable|null $labelFirst): self {$new=clone $this;$new->labelFirst=$labelFirst; return $new;} public function labelLast (string|Stringable|null $labelLast): self {$new=clone $this;$new->labelLast=$labelLast; return $new;}
You can then do something like this... $pagination = (new OffsetPagination()) ->paginator($paginator) ->labelPrevious(NoEncode::string('<i class="fas fa-play fa-rotate-180"></i>')) ->labelNext(NoEncode::string('<i class="fas fa-play"></i>')) ->labelFirst(null) ->labelLast(null);
What do you get instead?
Instead you are stuck with the default setting.
Additional info
@vjik if you find this code change exceptable, I can do change and submit pull request.
Q
A
Version
master
PHP version
8
Operating system
Window/Linux
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
In OffsetPagination no way of setting private member variables below...
private string|Stringable|null $labelPrevious = '⟨';
private string|Stringable|null $labelNext = '⟩';
private string|Stringable|null $labelFirst = '⟪';
private string|Stringable|null $labelLast = '⟫';
What is the expected result?
Would expect public member functions below...
public function labelPrevious(string|Stringable|null $labelPrevious): self {$new=clone $this;$new->labelPrevious=$labelPrevious;return $new;}
public function labelNext (string|Stringable|null $labelNext): self {$new=clone $this;$new->labelNext=$labelNext; return $new;}
public function labelFirst (string|Stringable|null $labelFirst): self {$new=clone $this;$new->labelFirst=$labelFirst; return $new;}
public function labelLast (string|Stringable|null $labelLast): self {$new=clone $this;$new->labelLast=$labelLast; return $new;}
You can then do something like this...
$pagination = (new OffsetPagination())
->paginator($paginator)
->labelPrevious(NoEncode::string('<i class="fas fa-play fa-rotate-180"></i>'))
->labelNext(NoEncode::string('<i class="fas fa-play"></i>'))
->labelFirst(null)
->labelLast(null);
What do you get instead?
Instead you are stuck with the default setting.
Additional info
@vjik if you find this code change exceptable, I can do change and submit pull request.
The text was updated successfully, but these errors were encountered: