DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
    • can-component
    • can-compute
    • can-connect
    • can-define
    • can-define/list/list
    • can-define/map/map
    • can-route
    • can-route-pushstate
    • can-set
      • types
        • Set
        • Compares
        • Prop
      • properties
        • Algebra
        • Translate
        • props
          • boolean
          • enum
          • id
          • offsetLimit
          • rangeInclusive
          • sort
    • can-stache
    • can-stache/helpers/route
    • can-stache-bindings
  • Ecosystem
  • Infrastructure
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Core
  • /
  • can-set
  • /
  • props
  • /
  • offsetLimit
  • / On this page
    • offsetLimit

      function

      Supports sets that include a limit and offset.

      • source

      set.props.offsetLimit( [offsetProperty][, limitProperty] )

      Makes a prop for two ranged properties that specify a range of items that includes both the offsetProperty and limitProperty. For example, set like: {offset: 20, limit: 10} loads 10 items starting at index 20.

      new set.Algebra( set.props.offsetLimit("offset","limit") );
      

      Parameters

      1. offsetProperty {String}:

        The offset property name on sets. Defaults to "offset" if none is provided.

      2. limitProperty {String}:

        The offset limit name on sets. Defaults to "limit" if none is provided.

      Returns

      {Compares}:

      Returns a comparator used to build a set algebra.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.