1 | /// <reference types="backbone" />
|
2 | import { WidgetModel, WidgetView } from './widget';
|
3 | export declare class LayoutModel extends WidgetModel {
|
4 | defaults(): Backbone.ObjectHash;
|
5 | }
|
6 | export declare class LayoutView extends WidgetView {
|
7 | /**
|
8 | * Public constructor
|
9 | */
|
10 | initialize(parameters: WidgetView.IInitializeParameters): void;
|
11 | /**
|
12 | * Register a CSS trait that is known by the model
|
13 | * @param trait
|
14 | */
|
15 | registerTrait(trait: string): void;
|
16 | /**
|
17 | * Get the the name of the css property from the trait name
|
18 | * @param model attribute name
|
19 | * @return css property name
|
20 | */
|
21 | css_name(trait: string): string;
|
22 | /**
|
23 | * Handles when a trait value changes
|
24 | */
|
25 | handleChange(trait: string, value: any): void;
|
26 | /**
|
27 | * Remove the styling from the parent view.
|
28 | */
|
29 | unlayout(): void;
|
30 | private _traitNames;
|
31 | }
|
32 | //# sourceMappingURL=widget_layout.d.ts.map |
\ | No newline at end of file |