Closed netil closed 7 years ago
Getting top/bottom elements API description and return value has ambiguity.
Returns a card element at the top of a layout. http://naver.github.io/egjs/latest/doc/eg.InfiniteGrid.html#getTopElement Returns a card element at the bottom of a layout. http://naver.github.io/egjs/latest/doc/eg.InfiniteGrid.html#getBottomElement
Returns a card element at the top of a layout.
Returns a card element at the bottom of a layout.
The descriptions are likely saying getting result of top or last element, but if grids are divided in several columns, which one is the expected?
For example, in the following case, .getBottomElement(), return the right element? or the left?
.getBottomElement()
I will add jsdoc comment.
The last element is used to find the index of the next data to fetch. we should fix it.
Description
Getting top/bottom elements API description and return value has ambiguity.
The descriptions are likely saying getting result of top or last element, but if grids are divided in several columns, which one is the expected?
For example, in the following case,
.getBottomElement()
, return the right element? or the left?