1 | import { WidgetModel, WidgetView } from './widget';
|
2 | export declare class LayoutModel extends WidgetModel {
|
3 | defaults(): any;
|
4 | }
|
5 | export declare class LayoutView extends WidgetView {
|
6 | /**
|
7 | * Public constructor
|
8 | */
|
9 | initialize(parameters: WidgetView.InitializeParameters): void;
|
10 | /**
|
11 | * Register a CSS trait that is known by the model
|
12 | * @param trait
|
13 | */
|
14 | registerTrait(trait: string): void;
|
15 | /**
|
16 | * Get the the name of the css property from the trait name
|
17 | * @param model attribute name
|
18 | * @return css property name
|
19 | */
|
20 | css_name(trait: string): string;
|
21 | /**
|
22 | * Handles when a trait value changes
|
23 | */
|
24 | handleChange(trait: string, value: any): void;
|
25 | /**
|
26 | * Handles when the value of overflow_x or overflow_y changes
|
27 | */
|
28 | handleOverflowChange(trait: string, value: any): void;
|
29 | /**
|
30 | * Remove the styling from the parent view.
|
31 | */
|
32 | unlayout(): void;
|
33 | private _traitNames;
|
34 | }
|