datagrid mass selection issue is fixed when no checkboxes for record is checked then master checkbox is also automatically unchecked

This commit is contained in:
Prashant Singh 2019-01-17 11:23:04 +05:30
parent 30a2031867
commit 4c3f70f60c
3 changed files with 19 additions and 2 deletions

View File

@ -266,6 +266,20 @@ class Product {
}
public function findRepeated() {
//find if there is duplicacy in the products grid here
}
/**
* Take action for attribute creation
*/
public function createColumnBasedOnAttribute($attribute) {
dd($attribute);
}
/**
* Take action for attribute updatation
*/
public function updateColumnBasedOnAttribute($attribute) {
dd($attribute);
}
}

View File

@ -222,7 +222,7 @@ abstract class DataGrid
}
}
}
dd($collection->toSql());
return $collection;
}

View File

@ -654,7 +654,10 @@
select() {
this.allSelected = false;
this.massActionsToggle = true;
if(this.dataIds.length == 0)
this.massActionsToggle = false;
else
this.massActionsToggle = true;
},
//triggered when master checkbox is clicked