dojox/dtl/filter/integers.js

  • Provides:

    • dojox.dtl.filter.integers
  • dojox.dtl.filter.integers.add

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        value = parseInt(value, 10);
        arg = parseInt(arg, 10);
        return isNaN(arg) ? value : value + arg;
    • summary
  • dojox.dtl.filter.integers.get_digit

    • type
      Function
    • parameters:
      • value: (typeof )
      • arg: (typeof )
    • source: [view]
        value = parseInt(value, 10);
        arg = parseInt(arg, 10) - 1;
        if(arg >= 0){
         value += "";
         if(arg < value.length){
          value = parseInt(value.charAt(arg), 10);
         }else{
          value = 0;
         }
        }
        return (isNaN(value) ? 0 : value);
    • summary
      Given a whole number, returns the 1-based requested digit of it
      desciprtion:
      1 is the right-most digit, 2 is the second-right-most digit, etc. Returns the
      original value for invalid input (if input or argument is not an integer,
      or if argument is less than 1). Otherwise, output is always an integer.
  • dojox.dtl.filter.integers

    • type
      Object
    • summary
  • dojox.dtl.filter

    • type
      Object
    • summary
  • dojox.dtl

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary