Hi Shane, I'm using nggrid, and I wrote a directive as you mentioned, but how can I capture the error within the grid? I debugged the js code, the error got set. Could you shed some lights?
thx. On Thursday, August 8, 2013 5:35:44 AM UTC-4, Veselin Ivanov wrote: > > Hey guys. > > I have a table that contains several columns and 2 of them are editable. > The table contains information about music played on a program and the two > editable columns are offset(from the start of the program) and duration. > Every time a user edits the offset or duration I want to check that it will > not overlap with the next one or with the end of the program and other > things. The problem is that I don't know where or how to put the logic. I > thought of editing the template of the cells and add a editable class on > the html and then use jQuery to do what I want but it dose not feel like > the angular way. > > I also thought of putting a directive on the table but since it needs to > manipulate the html of the hole table I don't want to get into that. The > third option that I thought of is to put a directive on the cell it self > but then I don't have a way of knowing where in the table the change is > happening and and how to compare it with the next row. > > I'm still a beginner with angular so I'm probably missing something > crucial. Could you point me in the right direction? > > Thank you. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
