You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/task.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Selectable list
5
+
# Lista selezionabile
6
6
7
-
Create a list where elements are selectable, like in file-managers.
7
+
Creare una lista nella quale gli elementi siano selezionabili, come nei file manager.
8
8
9
-
-A click on a list element selects only that element (adds the class`.selected`), deselects all others.
10
-
-If a click is made with `key:Ctrl` (`key:Cmd`for Mac), then the selection is toggled on the element, but other elements are not modified.
9
+
-Un click su una lista seleziona solo quell'elemento (aggiunge la classe`.selected`), e deseleziona tutti gli altri.
10
+
-Se un click viene fatto insieme a `key:Ctrl` (`key:Cmd`per Mac), allora la seleziona viene alternata sull'elemento, ma gli altri elementi non vengono modificati.
11
11
12
-
The demo:
12
+
La demo:
13
13
14
14
[iframe border="1" src="solution" height=180]
15
15
16
-
P.S. For this task we can assume that list items are text-only. No nested tags.
16
+
P.S.: Per questo compito possiamo assumere che questi elementi siano composti solamente da testo. Nessun tag annidato.
17
17
18
-
P.P.S. Prevent the native browser selection of the text on clicks.
18
+
P.P.S.: Prevenire la selezione nativa del browser sul testo al click.
0 commit comments