Skip to content

Fixes to IPP in Grid.php and Grid-demo.#2315

Open
rickyosser wants to merge 2 commits into
atk4:developfrom
rickyosser:grid_ipp_fix
Open

Fixes to IPP in Grid.php and Grid-demo.#2315
rickyosser wants to merge 2 commits into
atk4:developfrom
rickyosser:grid_ipp_fix

Conversation

@rickyosser

Copy link
Copy Markdown
Contributor

Added 50 to items list both in the Grid-demo as well as in Grid.
Fixed so Grid ipp will show selected value if set, otherwise fallback to 50 as it is default.

If $ipp is 0 don't set $this->ipp to the first item as that always sets the viewed selection
to the first item in the list. If we actually track the ipp in the app we want it to set and
show the correct value, as it was before reload or other events, before this change it only set the selected ipp value but showed the first item.
Default ipp in this class is 50, that will be showed when nothing is selected.

If we want to have 10 as default, $ipp should be set to 10 instead of 50.

…d so Grid ipp will show selected value if set, otherwise fallback to 50 as it is default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant