@syncfusion/ej2-lists
Advanced tools
Comparing version 16.3.29 to 16.3.30
@@ -5,2 +5,8 @@ # Changelog | ||
### ListView | ||
#### New Features | ||
- Included `refreshItemHeight` public API to recalculate list item height in `UI Virtualization`. | ||
## 16.3.27 (2018-10-23) | ||
@@ -7,0 +13,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.3.29 | ||
* version : 16.3.30 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-lists", | ||
"version": "16.3.29", | ||
"version": "16.3.30", | ||
"description": "Essential JS 2 List Components", | ||
@@ -11,5 +11,5 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~16.3.29", | ||
"@syncfusion/ej2-data": "~16.3.29", | ||
"@syncfusion/ej2-buttons": "~16.3.29" | ||
"@syncfusion/ej2-base": "~16.3.30", | ||
"@syncfusion/ej2-data": "~16.3.30", | ||
"@syncfusion/ej2-buttons": "~16.3.30" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -21,5 +21,5 @@ # ej2-lists | ||
* [Getting Started](https://ej2.syncfusion.com/documentation/list-view/getting-started.html?lang=typescript&utm_source=npm&utm_campaign=listview) | ||
* [Getting Started](https://ej2.syncfusion.com/documentation/listview/getting-started?utm_source=npm&utm_campaign=listview) | ||
* [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=listview#/material/listview/default.html) | ||
* [Product Page](https://www.syncfusion.com/products/javascript/listview) | ||
* [Product Page](https://www.syncfusion.com/javascript-ui-controls/listview) | ||
@@ -30,8 +30,8 @@ ## Supported Frameworks | ||
1. [Angular](https://github.com/syncfusion/ej2-ng-lists?utm_source=npm&utm_campaign=listview) | ||
2. [React](https://github.com/syncfusion/ej2-react-lists?utm_source=npm&utm_campaign=listview) | ||
3. [VueJS](https://github.com/syncfusion/ej2-vue-lists?utm_source=npm&utm_campaign=listview) | ||
4. [ASP.NET Core](https://www.syncfusion.com/products/aspnetcore/listview) | ||
5. [ASP.NET MVC](https://www.syncfusion.com/products/aspnetmvc/listview) | ||
6. [JavaScript (ES5)](https://www.syncfusion.com/products/javascript/listview) | ||
1. [Angular](https://github.com/syncfusion/ej2-angular-ui-components/tree/master/components/lists?utm_source=npm&utm_campaign=listview) | ||
2. [React](https://github.com/syncfusion/ej2-react-ui-components/tree/master/components/lists?utm_source=npm&utm_campaign=listview) | ||
3. [VueJS](https://github.com/syncfusion/ej2-vue-ui-components/tree/master/components/lists?utm_source=npm&utm_campaign=listview) | ||
4. [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls/listview) | ||
5. [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls/listview) | ||
6. [JavaScript (ES5)](https://www.syncfusion.com/javascript-ui-controls/listview) | ||
@@ -64,3 +64,3 @@ ## Showcase samples | ||
* Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_campaign=listview) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm&utm_campaign=listview). | ||
* New [GitHub issue](https://github.com/syncfusion/ej2-lists/issues/new). | ||
* New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new). | ||
* Ask your query in [Stack Overflow](https://stackoverflow.com/?utm_source=npm&utm_campaign=listview) with tag `syncfusion` and `ej2`. | ||
@@ -70,8 +70,8 @@ | ||
Check the license detail [here](https://github.com/syncfusion/ej2-lists/blob/master/license?utm_source=npm&utm_campaign=listview). | ||
Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/LICENSE?utm_source=npm&utm_campaign=listview). | ||
## Changelog | ||
Check the changelog [here](https://github.com/syncfusion/ej2-lists/blob/master/CHANGELOG.md?utm_source=npm&utm_campaign=listview) | ||
Check the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/lists/CHANGELOG.md?utm_source=npm&utm_campaign=listview) | ||
© Copyright 2018 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. |
@@ -345,2 +345,6 @@ import { Virtualization } from './virtualization'; | ||
private setCheckbox; | ||
/** | ||
* It is used to refresh the UI list item height | ||
*/ | ||
refreshItemHeight(): void; | ||
private clickHandler; | ||
@@ -347,0 +351,0 @@ private removeElement; |
@@ -38,2 +38,3 @@ import { ListView, ItemCreatedArgs, Fields, UISelectedItem } from './list-view'; | ||
private uiIndicesInitialization; | ||
refreshItemHeight(): void; | ||
private getscrollerHeight; | ||
@@ -40,0 +41,0 @@ private onVirtualUiScroll; |
@@ -81,2 +81,11 @@ import { classNames } from './list-view'; | ||
}; | ||
Virtualization.prototype.refreshItemHeight = function () { | ||
if (this.listViewInstance.curViewDS.length) { | ||
var curViewDS = this.listViewInstance.curViewDS; | ||
this.listItemHeight = this.topElement.nextSibling.getBoundingClientRect().height; | ||
this.totalHeight = (Object.keys(curViewDS).length * this.listItemHeight) - (this.domItemCount * this.listItemHeight); | ||
this.bottomElementHeight = this.totalHeight; | ||
this.bottomElement.style.height = this.totalHeight + 'px'; | ||
} | ||
}; | ||
Virtualization.prototype.getscrollerHeight = function () { | ||
@@ -83,0 +92,0 @@ return this.listViewInstance.isWindow ? (((pageYOffset - this.startingHeight) <= 0) ? 0 : |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1786388
14854