Advertisement
psi_mmobile

Untitled

May 30th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. this.isGeocodedItems = [
  2. { value: 'Y', text: '', icon: 'yes_checkbox_state.png' },
  3. { value: 'N', text: '', icon: 'no_checkbox_state.png' }
  4. ];
  5.  
  6.  
  7. {
  8. enableCellContextMenu: false,
  9. editor: false,
  10. text: 'Residence geolocated?',
  11. field: 'is_geocoded',
  12. id: 'columnIsGeocoded',
  13. type: 'threestatecheckbox',
  14. groupable: false,
  15. sortable: true,
  16. filterable: {
  17. filterField: {
  18. type: 'combo',
  19. editable: false,
  20. items: this.isGeocodedItems,
  21. autoComplete: 'new-password',
  22. listItemTpl: (item) => {
  23. return `<img style='padding-right:10px; min-width:26px; width:26px' src='../assets/images/${
  24. item.data.icon
  25. }'>`;
  26. },
  27. pickerWidth: this.pickerWidthCombo / 4
  28. },
  29. filterFn: ({ record, value }) => {
  30. return (
  31. value && value === record.is_geocoded
  32. );
  33. }
  34. },
  35. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement