# @types/backbone.layoutmanager

> TypeScript definitions for backbone.layoutmanager

Latest version **0.9.39** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/backbone.layoutmanager
pnpm add @types/backbone.layoutmanager
yarn add @types/backbone.layoutmanager
bun add @types/backbone.layoutmanager
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.9.39 |
| Published | 2023-11-06 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51476 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/backbone.layoutmanager
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/backbone.layoutmanager
- npm.io page: https://npm.io/package/@types/backbone.layoutmanager

## Dependencies (2)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *
- [@types/backbone](https://npm.io/package/@types/backbone.md) *

## Recent versions

- 0.9.39 (latest) — 2023-11-06
- 0.9.36 (ts3.9) — 2021-07-09
- 0.9.34 (ts3.5) — 2021-02-03
- 0.9.33 (ts3.3) — 2020-05-15
- 0.9.32 (ts2.9) — 2019-06-19
- 0.9.31 (ts2.6) — 2017-08-21
- 0.9.29 (ts2.1) — 2016-09-19
- 0.9.38 — 2023-10-17
- 0.9.37 — 2023-09-15
- 0.9.35 — 2021-07-07
- 0.9.30 — 2017-06-15
- 0.9.28 — 2016-07-14
- 0.9.27-alpha — 2016-07-08
- 0.9.26-alpha — 2016-07-03
- 0.9.25-alpha — 2016-07-02
- … 6 more at https://npm.io/package/@types/backbone.layoutmanager/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/backbone.layoutmanager/index.d.ts)
````ts
/// <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: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/backbone](https://npmjs.com/package/@types/backbone), [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [He Jiang](https://github.com/hejiang2000).

---
_Source: https://npm.io/package/@types/backbone.layoutmanager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
