Skip to content
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

Merged
merged 7 commits into from
Feb 10, 2020
Merged

Hieule/selection #6

merged 7 commits into from
Feb 10, 2020

Conversation

htl43
Copy link
Collaborator

@htl43 htl43 commented Feb 2, 2020

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

@htl43 htl43 requested a review from Korede-TA February 2, 2020 18:28
Copy link
Owner

@Korede-TA Korede-TA left a 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

package.json Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
src/model.rs Outdated Show resolved Hide resolved
src/model.rs Outdated
self.l_select_cell.row_to_string(),
self.l_select_cell.col_to_string()
);
self.select_grammar.push(coord);
Copy link
Owner

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.

Copy link
Collaborator Author

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>,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to selected_grammars.

@htl43 htl43 closed this Feb 5, 2020
@htl43 htl43 reopened this Feb 5, 2020
src/view.rs Outdated Show resolved Hide resolved
static/styles.css Outdated Show resolved Hide resolved
src/view.rs Outdated Show resolved Hide resolved
@Korede-TA Korede-TA merged commit cf80eba into master Feb 10, 2020
@htl43 htl43 deleted the hieule/selection branch February 20, 2020 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants