Exemplo n.º 1
0
 /// <summary>
 /// Add a model at the beginning of a collection. Takes the same options as add.
 /// </summary>
 /// <param name="model"></param>
 public void unshift(Model model) { }
Exemplo n.º 2
0
 /// <summary>
 /// Add a model at the end of a collection. Takes the same options as add.
 /// </summary>
 /// <param name="models"></param>
 public void push(Model models) { }
Exemplo n.º 3
0
 /// <summary>
 /// Add a model at the beginning of a collection. Takes the same options as add.
 /// </summary>
 /// <param name="model"></param>
 /// <param name="options"></param>
 public void unshift(Model model, object options) { }
Exemplo n.º 4
0
 /// <summary>
 /// Add a model at the end of a collection. Takes the same options as add.
 /// </summary>
 /// <param name="models"></param>
 /// <param name="options"></param>
 public void push(Model models, object options) { }
Exemplo n.º 5
0
 /// <summary>
 /// Remove a model (or an array of models) from the collection. Fires a "remove" event, which you can use silent to suppress.
 /// If you're a callback listening to the "remove" event, the index at which the model is being removed from the collection is available as options.index.
 /// </summary>
 /// <param name="models"></param>
 public void remove(Model models) { }
Exemplo n.º 6
0
 /// <summary>
 /// Remove a model (or an array of models) from the collection. Fires a "remove" event, which you can use silent to suppress.
 /// If you're a callback listening to the "remove" event, the index at which the model is being removed from the collection is available as options.index.
 /// </summary>
 /// <param name="models"></param>
 /// <param name="options"></param>
 public void remove(Model models, object options) { }
Exemplo n.º 7
0
 /// <summary>
 /// Add a model (or an array of models) to the collection. Fires an "add" event, which you can pass {silent: true} to suppress.
 /// If a model property is defined, you may also pass raw attributes objects, and have them be vivified as instances of the model.
 /// Pass {at: index} to splice the model into the collection at the specified index.
 /// Likewise, if you're a callback listening to a collection's "add" event, options.index will tell you the index at which the model is being added to the collection.
 /// </summary>
 /// <param name="models"></param>
 ///<example>
 ///usage
 ///<code>
 ///var ships = new Backbone.Collection;
 /// 
 /// ships.on("add", function(ship) {
 ///   alert("Ahoy " + ship.get("name") + "!");
 /// });
 /// 
 /// ships.add([
 ///   {name: "Flying Dutchman"},
 ///   {name: "Black Pearl"}
 /// ]);
 ///</code>
 ///</example>
 public void add(Model models) { }
Exemplo n.º 8
0
        //TODO: Underscore Methods 

        /// <summary>
        /// Add a model (or an array of models) to the collection. Fires an "add" event, which you can pass {silent: true} to suppress.
        /// If a model property is defined, you may also pass raw attributes objects, and have them be vivified as instances of the model.
        /// Pass {at: index} to splice the model into the collection at the specified index.
        /// Likewise, if you're a callback listening to a collection's "add" event, options.index will tell you the index at which the model is being added to the collection.
        /// </summary>
        /// <param name="models"></param>
        /// <param name="options"></param>
        ///<example>
        ///usage
        ///<code>
        ///var ships = new Backbone.Collection;
        /// 
        /// ships.on("add", function(ship) {
        ///   alert("Ahoy " + ship.get("name") + "!");
        /// });
        /// 
        /// ships.add([
        ///   {name: "Flying Dutchman"},
        ///   {name: "Black Pearl"}
        /// ]);
        ///</code>
        ///</example>
        public void add(Model models, object options) { }