dojox/dtl/filter/logic.js

  • Provides:

    • dojox.dtl.filter.logic
  • dojox.dtl.filter.logic.default_

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        return value || arg || "";
    • summary
      If value is unavailable, use given default
  • dojox.dtl.filter.logic.default_if_none

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        return (value === null) ? arg || "" : value || "";
    • summary
      If value is null, use given default
  • dojox.dtl.filter.logic.divisibleby

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        return (parseInt(value, 10) % parseInt(arg, 10)) === 0;
    • summary
      Returns true if the value is devisible by the argument"
  • dojox.dtl.filter.logic._yesno

    • summary
  • dojox.dtl.filter.logic.yesno

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        if(!arg){
         arg = 'yes,no,maybe';
        }
        var parts = arg.split(dojox.dtl.filter.logic._yesno);
        if(parts.length < 2){
         return value;
        }
        if(value){
         return parts[0];
        }
        if((!value && value !== null) || parts.length < 3){
         return parts[1];
        }
        return parts[2];
    • summary
      arg being a comma-delimited string, value of true/false/none
      chooses the appropriate item from the string
  • dojox.dtl.filter.logic

    • type
      Object
    • summary
  • dojox.dtl.filter

    • type
      Object
    • summary
  • dojox.dtl

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary