API Docs for:
Show:

ModelList Class

Item Index

Methods

Methods

difference

(
  • modelListType
  • modelLists
)
Object static

Creates a model list that is the difference of two or more other model lists. The new model list stays up to date as the source lists change.

Parameters:

  • modelListType Function | Object | String

    Optional. The first argument determines the type of model list that is created; it may be a constructor function or a string namespace to a constructor function stored on Y. If the first argument is an instance of ModelList, its constructor is used.

  • modelLists Object

    1-n ModelList objects to difference. Order is important.

Returns:

union

(
  • modelListType
  • modelLists
)
Object static

Creates a model list that is the union of two or more other model lists. The new model list stays up to date as the source lists change.

Parameters:

  • modelListType Function | Object | String

    Optional. The first argument determines the type of model list that is created; it may be a constructor function or a string namespace to a constructor function stored on Y. If the first argument is an instance of ModelList, its constructor is used.

  • modelLists Object

    1-n ModelList objects to union.

Returns: