[AngularJS] Re: [Angular2] navigation through arrow keys

2016-10-11 Thread HansMeise
Hi, it is a long time since I implemented that (angular2 beta2 or something), so maybe I am missing something in the snippets I am giving you right now: In my html template I have a table with a binding to the keydown event and the tablerow with a css only highlighting the row, if the

[AngularJS] Re: [Angular2] navigation through arrow keys

2016-10-10 Thread vvvttt
I am new to angular 2. Can you please provide an example of how you achieved the navigation? Thanks. On Monday, February 1, 2016 at 3:55:34 AM UTC-7, HansMeise wrote: > > Thanks, didn't even know you could refer inside of the component to a > template variable. So this hint will also help in

[AngularJS] Re: [Angular2] navigation through arrow keys

2016-02-01 Thread HansMeise
Thanks, didn't even know you could refer inside of the component to a template variable. So this hint will also help in many others situations :-) Am Samstag, 30. Januar 2016 14:54:46 UTC+1 schrieb Günter Zöchbauer: > > You could add a template variable to the created rows and filter for these

[AngularJS] Re: [Angular2] navigation through arrow keys

2016-01-30 Thread Günter Zöchbauer
You could add a template variable to the created rows and filter for these elements using `@ViewChildren('myVar') rows;` and then set focus on the previous/next item in the list on arrow up/down. On Wednesday, January 27, 2016 at 10:44:18 AM UTC+1, HansMeise wrote: > > I have a normal with