-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hieule/selection #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job! i've suggested some changes in the comments
src/model.rs
Outdated
self.l_select_cell.row_to_string(), | ||
self.l_select_cell.col_to_string() | ||
); | ||
self.select_grammar.push(coord); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think what you want to do here is add all the grammars between f_select_cell
and l_select_cell
to self.select_grammar
. you'll need to loop through the coordinates somehow. one thing you might want to check for is that f_select_cell
and l_select_cell
have the same parent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. It's just some testing for that. Got it. Thank man
pub col_widths: HashMap<Col, f64>, | ||
pub row_heights: HashMap<Row, f64>, | ||
|
||
pub select_grammar: Vec<Coordinate>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to selected_grammars
.
Can you guys help me to understand the code quick?
I want the action onclick for the cell it will push the coord to selectCells vector; and then if user hold the shift and click on other cell, it will put the next coord to that vector. There are something that I need to figure out.
How can I check or print out what coord in the selectCell?
How can I change the class with the CSS for those cell?
I will try continue to work on this for today