nativescript-telerik-ui
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -122,2 +122,3 @@ declare module android { | ||
setItems(items: any); | ||
getItemCount(): number; | ||
} | ||
@@ -124,0 +125,0 @@ class ListViewBehavior { |
@@ -23,2 +23,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
_super.call(this, items); | ||
this._currentId = 0; | ||
this.ownerLv = listView; | ||
@@ -61,2 +62,3 @@ this._viewHolders = new Array(); | ||
this._swipeHolders.splice(0, this._swipeHolders.length); | ||
this._currentId = 0; | ||
_super.prototype.setItems.call(this, items); | ||
@@ -102,2 +104,5 @@ }; | ||
}; | ||
ListViewAdapter.prototype.getUniqueItemId = function () { | ||
return this._currentId++; | ||
}; | ||
return ListViewAdapter; | ||
@@ -286,4 +291,6 @@ })(com.telerik.widget.list.ListViewAdapter); | ||
if (data.action === observableArray.ChangeType.Update) { | ||
var itemValue = this._listViewAdapter.getItem(data.index); | ||
this._listViewAdapter.remove(data.index); | ||
this._listViewAdapter.add(data.index, new java.lang.Integer(data.index)); | ||
//this._listViewAdapter.add(data.index, new java.lang.Integer(data.index)); | ||
this._listViewAdapter.add(data.index, itemValue); | ||
} | ||
@@ -295,3 +302,4 @@ else if (data.action === observableArray.ChangeType.Delete) { | ||
for (var i = 0; i < data.addedCount; i++) { | ||
this._listViewAdapter.add(new java.lang.Integer(data.index + i)); | ||
//this._listViewAdapter.add(new java.lang.Integer(data.index + i)); | ||
this._listViewAdapter.add(new java.lang.Integer(this._listViewAdapter.getUniqueItemId())); | ||
} | ||
@@ -307,3 +315,3 @@ } | ||
for (var i = 0; i < data.addedCount; i++) { | ||
this._listViewAdapter.add(data.index + i, new java.lang.Integer(data.index + i)); | ||
this._listViewAdapter.add(data.index + i, new java.lang.Integer(this._listViewAdapter.getUniqueItemId())); | ||
} | ||
@@ -587,9 +595,9 @@ } | ||
var nativeSource = new java.util.ArrayList(); | ||
this._listViewAdapter = new ListViewAdapter(nativeSource, this); | ||
var dsLength = this.items.length; | ||
for (var i = 0; i < dsLength; i++) { | ||
var item = this.getItemAtIndex(i); | ||
var javaObject = new java.lang.Integer(i); | ||
var javaObject = new java.lang.Integer(this._listViewAdapter.getUniqueItemId()); | ||
nativeSource.add(javaObject); | ||
} | ||
this._listViewAdapter = new ListViewAdapter(nativeSource, this); | ||
this._android.setAdapter(this._listViewAdapter); | ||
@@ -596,0 +604,0 @@ }; |
@@ -433,3 +433,3 @@ /** | ||
/** | ||
* Identifies the {@link loadOnDemand} dependency property. | ||
* Identifies the {@link loadOnDemandMode} dependency property. | ||
*/ | ||
@@ -490,3 +490,3 @@ static loadOnDemandModeProperty: dependencyObservable.Property; | ||
/** | ||
* Gets or sets a value from the {@link LoadOnDemandMode} list determining | ||
* Gets or sets a value from the {@link ListViewLoadOnDemandMode} list determining | ||
* the currently active load-on-demand mode. | ||
@@ -504,3 +504,3 @@ */ | ||
/** | ||
* Gets or sets a value from the {@link SelectionBehavior} list | ||
* Gets or sets a value from the {@link ListViewSelectionBehavior} list | ||
* determining whether items are selected on press, long press, | ||
@@ -507,0 +507,0 @@ * or can't be selected at all. |
@@ -396,4 +396,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
ExtendedListViewCell.prototype.systemLayoutSizeFittingSize = function (targetSize) { | ||
//var newSize = CGSizeMake(this.view.itemView.ios.bounds.size.width, this.view.itemView.ios.bounds.size.height); | ||
var newSize = CGSizeMake(this.view.itemView.ios.bounds.size.width, 100); | ||
var newSize = CGSizeMake(this.view.itemView.ios.bounds.size.width, this.view.itemView.ios.bounds.size.height); | ||
return newSize; | ||
@@ -400,0 +399,0 @@ }; |
{ | ||
"name": "nativescript-telerik-ui", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Telerik UI for NativeScript is a set of rich-ui, cross-platform components based on the native iOS and Android libraries provided by Telerik.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22214379
11213