forked from mystiq/hydrogen-web
add some spaces and comments
This commit is contained in:
parent
c22718811f
commit
7897ea88cd
3 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,7 @@ export class LazyListView<T, V extends IView> extends ListView<T, V> {
|
||||||
private scrollContainer?: HTMLElement;
|
private scrollContainer?: HTMLElement;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
{itemHeight, overflowMargin = 5, overflowItems = 20,...options}: IOptions<T, V>,
|
{itemHeight, overflowMargin = 5, overflowItems = 20, ...options}: IOptions<T, V>,
|
||||||
childCreator: (value: T) => V
|
childCreator: (value: T) => V
|
||||||
) {
|
) {
|
||||||
super(options, childCreator);
|
super(options, childCreator);
|
||||||
|
|
|
@ -67,6 +67,8 @@ interface RemoveResult {
|
||||||
removeIdx: number;
|
removeIdx: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// need to repeat the fields from RemoveResult and AddResult here
|
||||||
|
// to make the discriminated union work
|
||||||
interface RemoveAndAddResult<T> {
|
interface RemoveAndAddResult<T> {
|
||||||
type: ResultType.RemoveAndAdd;
|
type: ResultType.RemoveAndAdd;
|
||||||
newRange?: ListRange;
|
newRange?: ListRange;
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
import {LazyListView} from "../../general/LazyListView";
|
import {LazyListView} from "../../general/LazyListView";
|
||||||
import {MemberTileView} from "./MemberTileView.js";
|
import {MemberTileView} from "./MemberTileView.js";
|
||||||
|
|
||||||
export class MemberListView extends LazyListView{
|
export class MemberListView extends LazyListView {
|
||||||
constructor(vm) {
|
constructor(vm) {
|
||||||
super({
|
super({
|
||||||
list: vm.memberTileViewModels,
|
list: vm.memberTileViewModels,
|
||||||
|
|
Loading…
Reference in a new issue