Selecting Cards

Add the functionality of selecting a particular task in your app. Hint: a 'selected' property.

Exercise:

Make your cards selectable by clicking on them. Whenever you select a card, you have to deselect all other cards.

Source code:

Use the PomodoroTracker5 folder as a starting point. The end result is in PomodoroTracker6.

Solution:

The main purpose of this exercise is to check whether the candidate has a tendency of overcomplicating things. The solution of this exercise is fairly simple.

A selected class will take care of the styling of the selected task card:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.