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

Reverse rendering & fillig of items #26

Open
ghost opened this issue May 16, 2014 · 3 comments
Open

Reverse rendering & fillig of items #26

ghost opened this issue May 16, 2014 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented May 16, 2014

Now if you hit button with ->addCreateOnClick() it add new empty field/fields on the end of replicator. Is it possible to add some "switch" like "$revert = FALSE" on this line https://github.com/Kdyby/Replicator/blob/master/src/Kdyby/Replicator/Container.php#L60?

When $rever will be TRUE it add items on the start of replicator (array of replicator components).

The current behavior is a problem if you have multiple items. You must scroll to the end of page after every click on button.

I hope that you understand.

@fprochazka
Copy link
Member

It could be done using $insertBefore http://api.kdyby.org/class-Nette.ComponentModel.Container.html#_addComponent

@ghost
Copy link
Author

ghost commented May 16, 2014

But how? I did not see it in your code.

@fprochazka
Copy link
Member

No it isn't, my comment was just a note for anyone who'd like to implement it ;)

@fprochazka fprochazka changed the title Feature: Reverse rendering & fillig of items Reverse rendering & fillig of items Jun 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant