mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-20 06:15:13 +00:00
Bulk Select checkbox
This commit is contained in:
@@ -12,6 +12,14 @@ export const useEmailSelection = function(){
|
||||
this.emails.add(id);
|
||||
}
|
||||
},
|
||||
clear(){
|
||||
this.emails.clear();
|
||||
},
|
||||
addMultiple(emails) {
|
||||
emails.forEach(email => {
|
||||
this.emails.add(email)
|
||||
})
|
||||
},
|
||||
forSelected(fn){
|
||||
this.emails.forEach(email => {
|
||||
fn(email)
|
||||
|
||||
Reference in New Issue
Block a user