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

Add option to pass in container_class and container_id #61

Merged
merged 2 commits into from
Oct 6, 2018

Conversation

nikolalsvk
Copy link
Collaborator

@nikolalsvk nikolalsvk commented Oct 6, 2018

You can now customize the element that will get replaced by the content of your request.
There's 2 ways of customizing it:

  1. Pass in the container ID with container_id: 'comments-container'
  2. Pass in the class name of the container element with container_class: 'comments-placeholder'

E.g.

<%= render_async some_path, container_id: 'comments-container' %>

or

<%= render_async some_path, container_class: 'comments-placeholder' %>

Closes #57

@nikolalsvk nikolalsvk merged commit 72bf613 into master Oct 6, 2018
@nikolalsvk nikolalsvk deleted the placeholder-div-class branch October 6, 2018 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant