Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. class FilterDisplay extends Filter {
  2. constructor (props) {
  3. super(props);
  4. }
  5.  
  6. render() {
  7. console.log(this.fieldOptions); // this doesn't work
  8. return (
  9. <div className="filter">
  10.  
  11. </div>
  12. )
  13. }
  14. }
  15.  
  16. class Filter extends React.Component {
  17. constructor (props) {
  18. super(props);
  19. this.fieldOptions = [
  20. { Text: "Employee Status", Value: 1 },
  21. { Text: "Original Hire Date", Value: 2 },
  22. { Text: "Termination Date", Value: 3 },
  23. { Text: "Pay Periods Per Year", Value: 4 },
  24. { Text: "City", Value: 5 },
  25. { Text: "State", Value: 6 },
  26. { Text: "Zip", Value: 7 },
  27. { Text: "Country", Value: 8 },
  28. { Text: "Payroll Group", Value: 9 },
  29. { Text: "Employee Classification", Value: 10 },
  30. { Text: "Annual Base Rate", Value: 11 },
  31. { Text: "IsActivated", Value: 12 },
  32. { Text: "Purchase Program Eligibility", Value: 13 },
  33. { Text: "Wellness Program Eligibility", Value: 14 },
  34. { Text: "Company Branch", Value: 15 }
  35. ];
  36.  
  37. this.operationOptions = [
  38. { Text: "Equal to", Value: 1 },
  39. { Text: "Not Equal to", Value: 2 },
  40. { Text: "Greater Than", Value: 3 },
  41. { Text: "Less Than", Value: 4 },
  42. { Text: "Greater Than or Equal To", Value: 5 },
  43. { Text: "Less Than or Equal To", Value: 6 },
  44. { Text: "In", Value: 7 },
  45. { Text: "Between", Value: 8 }
  46. ];
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement