Skip to content
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

Implement collapseByDefault on Repeater FormWidget #338

Closed
zlobec opened this issue May 31, 2018 · 6 comments
Closed

Implement collapseByDefault on Repeater FormWidget #338

zlobec opened this issue May 31, 2018 · 6 comments

Comments

@zlobec
Copy link

zlobec commented May 31, 2018

How would one tackle the problem, to load all variables (like repeaters and other fields) on page open, to a collapsed state?

Example: I have a gallery with a repeater and + 20 images... and when they all load not collapsed, it takes a while to get to the end of page to add a new image.

Any suggestions?
Regard,
Darjan

@LukeTowers
Copy link
Contributor

@zlobec for now probably some JS is your best bet, or we could add a property to the repeater form widget that loads it in a collapsed state, something like collapseByDefault. Make a PR if you'd like to see that behaviour

@LukeTowers LukeTowers changed the title Variable fields, on page load, to load collapsed? Implement collapseByDefault on Repeater FormWidget May 31, 2018
@zlobec
Copy link
Author

zlobec commented May 31, 2018

@LukeTowers thanks for the response. I haven't got enough experience to start developing solutions for all my problems :D I'll try to find a JS or CSS solution as a quick fix for this.

@LukeTowers
Copy link
Contributor

@zlobec give it a try, you'll probably learn lots :)

@zlobec
Copy link
Author

zlobec commented May 31, 2018

For the time website is not in production, I added the class "collapsed" to the _repeater.htm partial in line 7. Crude, but it sorta works for my needs now 😄

@LukeTowers
Copy link
Contributor

@zlobec you might be able to add it in the attributes property

@bennothommo
Copy link
Contributor

Closing as it has been over a month since any activity on this occurred and we are trying to figure out what issues are still relevant. If this is still something that you would like to see through to fruition please respond and we can get the ball rolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants