mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded.
Summary: Grist document, when reloaded, is able to restore the latest cursor position and the editor state. Test Plan: Browser test were created. Reviewers: dsagal Reviewed By: dsagal Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D2808
This commit is contained in:
6
app/client/declarations.d.ts
vendored
6
app/client/declarations.d.ts
vendored
@@ -45,6 +45,11 @@ declare module "app/client/components/BaseView" {
|
||||
import {DomArg} from 'grainjs';
|
||||
import {IOpenController} from 'popweasel';
|
||||
|
||||
type Options = {
|
||||
init? : string,
|
||||
state? : any
|
||||
}
|
||||
|
||||
namespace BaseView {}
|
||||
class BaseView extends Disposable {
|
||||
public viewSection: ViewSectionRec;
|
||||
@@ -63,6 +68,7 @@ declare module "app/client/components/BaseView" {
|
||||
public createFilterMenu(ctl: IOpenController, field: ViewFieldRec, onClose?: () => void): HTMLElement;
|
||||
public buildTitleControls(): DomArg;
|
||||
public getLoadingDonePromise(): Promise<void>;
|
||||
public activateEditorAtCursor(options?: Options) : void;
|
||||
public onResize(): void;
|
||||
public prepareToPrint(onOff: boolean): void;
|
||||
public moveEditRowToCursor(): DataRowModel;
|
||||
|
||||
Reference in New Issue
Block a user