本文整理匯總了TypeScript中vs/base/common/iterator.ArrayNavigator類的典型用法代碼示例。如果您正苦於以下問題:TypeScript ArrayNavigator類的具體用法?TypeScript ArrayNavigator怎麽用?TypeScript ArrayNavigator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ArrayNavigator類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: _onChange
private _onChange() {
this._reduceToLimit();
this._navigator = new ArrayNavigator(this._history.elements);
this._navigator.last();
}
示例2: previous
public previous(): T {
if (this._navigator.previous()) {
return this._navigator.current();
}
this.first();
return null;
}
示例3: next
public next(): T {
if (this._navigator.next()) {
return this._navigator.current();
}
this.last();
return null;
}
示例4: last
public last(): T {
return this._navigator.last();
}
示例5: first
public first(): T {
return this._navigator.first();
}
示例6: current
public current(): T {
return this._navigator.current();
}
示例7: previous
public previous(): T {
return this._navigator.previous();
}
示例8: next
public next(): T {
return this._navigator.next();
}