These are chat archives for canjs/canjs

3rd
Dec 2015
Paul Tichonczuk
@tracer99
Dec 03 2015 16:20
Using @index inside a #each and getting an error saying I should be using %index. However, that doesn't output anything
Julian
@pYr0x
Dec 03 2015 17:09
which version?
Paul Tichonczuk
@tracer99
Dec 03 2015 17:20
2.3 (whatever gets bundled with the latest DoneJS)
Julian
@pYr0x
Dec 03 2015 17:22
please try 2.3.4
there was a bug
canjs/canjs#2082
Paul Tichonczuk
@tracer99
Dec 03 2015 17:43
Thanks
Guido Smeets
@gsmeets
Dec 03 2015 20:28
anyone ever tried achieving virtual table rendering with stache?
i.e. render a table, and then when scrolling / paging only re-render cell contents and not the entire table
I wonder if it can be done
David Luecke
@daffl
Dec 03 2015 20:43
You could create a list of normal can.Maps, render those and then just .attr() them with the new paging data.
Guido Smeets
@gsmeets
Dec 03 2015 21:41
yeah, I'm thinking along those lines
but I'm thinking how can I attr those 10 or 25 rows at a time
without having to specify a template of 10-25 rows ;)
Justin Meyer
@justinbmeyer
Dec 03 2015 21:41
@gsmeets I did this once with JMVC 1.5
Guido Smeets
@gsmeets
Dec 03 2015 21:42
I know @rjgotten has it working in can 1.x with ejs or vashj
but I've got everything in stache
and I'd also prefer using just stache and live binding over adding a component like SlickGrid
@justinbmeyer if you're able to give me some hints on how to work this out that'd be great :) I'm heading to bed now though, it's almost 11PM here
Justin Meyer
@justinbmeyer
Dec 03 2015 21:44
the problem with this is that you'd still need another "page"
ideally, you could find one that could be passed a DOM fragment
as the <trs> that should be displayed
something that separates the positioning logic
from that actual content generation
if there's something like that ... it can probably be done easily
if not ... you'd want to build that thing
and research how current tools are able to get the positions right
Mason Shin
@minsooshin
Dec 03 2015 21:54
@justinbmeyer please email me on js.mason.shin@gmail.com
Mason Shin
@minsooshin
Dec 03 2015 22:57
@justinbmeyer replied :)