< Niklaus.20131218-integrate-epha-interaction-6 | 2013 | Niklaus.20131216-fix-oddb2-csv-error >>
---
We have the following problems:
Continue work. Example is still interaction is between Marcoumar and Aspirin. Open problems are:
Example at matrix.epha.org is:
Example from Zeno
The following changes to the UI are requested:
It is not so simple to add a new row. Why? Experimented with adding a test/test_add_row.rb to my htmlgrid checkout and made it work using @grid.add_row. See Attach:test_add_row.rb.txt. First try has now everything with a single column.
Zeno pointed me to have a look at the results of drugs. Turns out that this override the compose_list and the compose_header methods of htmlgrid. Which explains partly my woes on how to achieve this effect by just using htmlgrid!
Changing the interaction_chooser to add into the same HtmlGrid::List two different models made it accessing in htmlgrid/composite.rb the nil varible @grid when calling to_html. Also noticed that HtmlGrid::Div is not been tested in htmlgrid.
Decided to make unit-tests for the working example teraction_chooser and then trying to add different entites or override compose_list/header.