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

extend row-rendering (add class and data-id) #18

Open
saft1g opened this issue Jan 16, 2017 · 0 comments
Open

extend row-rendering (add class and data-id) #18

saft1g opened this issue Jan 16, 2017 · 0 comments

Comments

@saft1g
Copy link

saft1g commented Jan 16, 2017

Hi,
I use DataTables and combined it with "open dialog on doubleclick". Because of lots of Entities (>20k) I switched to your Bundle. Everything works fine but I have to extend the of each row with css classes and a data-id property.

Old Code:
`{% for h in entities %}

{{ h.name }}
{{ h.description }}

{% endfor %}

<script> $(document).on("dblclick", ".opdia", function () { var editId = $(this).data('id'); var res = ""; var success = false; var url = "XXXXXXXXXX?xid=" + editId; $.when( $.ajax({ type: 'GET', url: url, success: function (response) { res = response; success = true; }, error: function () { //handle error }, })).then(function () { if (success) { $("#myModal").html(res).modal("show"); } }); }); </script>

`

Is it possible to customize the row-rendering?

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

No branches or pull requests

1 participant