---
id: 97
title: 'examples.Gallery: maxItems'
state: CLOSED
labels:
  - enhancement
assignees: []
createdAt: '2019-11-25T12:27:08Z'
updatedAt: '2019-11-26T11:44:44Z'
githubUrl: 'https://github.com/neomjs/neo/issues/97'
author: tobiu
commentsCount: 1
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2019-11-26T11:44:44Z'
---
# examples.Gallery: maxItems

very similar to examples.Helix:

you should be able to change the amount of maxItems dynamically.

in case an item containing the active selection does get removed, a new item should get selected.

## Timeline

- 2019-11-25T12:27:08Z @tobiu added the `enhancement` label
- 2019-11-25T15:58:18Z @tobiu referenced in commit `d9caf59` - "examples.Gallery: maxItems #97 => added the config & a numberField to the examples page to change it"
- 2019-11-25T16:23:45Z @tobiu referenced in commit `e6e780e` - "examples.Gallery: maxItems #97 => logic & refactoring"
- 2019-11-26T11:44:12Z @tobiu referenced in commit `66cd4f5` - "examples.Gallery: maxItems #97 => select a new item in case the currently selected one does get removed"
### @tobiu - 2019-11-26T11:44:44Z

resolved

- 2019-11-26T11:44:44Z @tobiu closed this issue

