0.9.39 • Published 6 months ago
@types/backbone.layoutmanager v0.9.39
Installation
npm install --save @types/backbone.layoutmanager
Summary
This package contains type definitions for Backbone.LayoutManager (http://layoutmanager.org/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/backbone.layoutmanager.
index.d.ts
// Type definitions for Backbone.LayoutManager 0.9
// Project: http://layoutmanager.org/
// Definitions by: He Jiang <https://github.com/hejiang2000>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="jquery" />
import * as Backbone from 'backbone';
declare module 'backbone' {
interface LayoutOptions<TModel extends Model> extends ViewOptions<TModel> {
template?: string | undefined;
views?: { [viewName: string]: View<TModel> } | undefined;
}
interface LayoutManagerOptions {
manage?: boolean | undefined;
el?: boolean | undefined;
}
class Layout<TModel extends Model> extends View<TModel> {
template: string;
constructor(options?: LayoutOptions<TModel>);
beforeRender(): void;
afterRender(): void;
cleanup(): void;
fetchTemplate(path: string): (context:any)=>string;
async():(compiled:(context:any)=>void)=>void;
promise(): JQueryPromise<any>;
getAllOptions(): LayoutOptions<TModel>;
getView(fn?:any): any;
getViews(fn?:any): any[];
insertView(selector:any, view?:any): any; // return view;
insertViews(views:any): Layout<TModel>; // return this;
remove(): this;
removeView(fn:any): Layout<TModel>;
render(): this;
renderViews(): Layout<TModel>; // return this
setView<U>(name: any, view: U, insert?:boolean): U; // return view
setViews(views:any): Layout<TModel>; // return this
then(fn:()=>void):void;
static cache(path: string, contents?: any): any;
static cleanViews(views: any): void;
static configure(options: LayoutManagerOptions): void;
static setupView(views: any, options?: LayoutOptions<Model>): void;
}
}
Additional Details
- Last updated: Fri, 09 Jul 2021 02:32:21 GMT
- Dependencies: @types/backbone, @types/jquery
- Global values: none
Credits
These definitions were written by He Jiang.
0.9.37
8 months ago
0.9.38
7 months ago
0.9.39
6 months ago
0.9.36
3 years ago
0.9.35
3 years ago
0.9.34
3 years ago
0.9.33
4 years ago
0.9.32
5 years ago
0.9.31
7 years ago
0.9.30
7 years ago
0.9.29
8 years ago
0.9.28
8 years ago
0.9.27-alpha
8 years ago
0.9.26-alpha
8 years ago
0.9.25-alpha
8 years ago
0.9.24-alpha
8 years ago
0.9.23-alpha
8 years ago
0.9.22-alpha
8 years ago
0.9.21-alpha
8 years ago
0.9.16-alpha
8 years ago
0.9.15-alpha
8 years ago