mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-28 03:32:56 +00:00
Merge pull request #10489 from ErinCoughlan/patch-1
Update MdPanel in angular-material.d.ts file
This commit is contained in:
commit
9254dcccd1
32
angular-material/angular-material.d.ts
vendored
32
angular-material/angular-material.d.ts
vendored
@ -299,6 +299,7 @@ declare namespace angular.material {
|
||||
locals?: {[index: string]: any};
|
||||
resolve?: {[index: string]: angular.IPromise<any>}
|
||||
attachTo?: string|JQuery|Element;
|
||||
propagateContainerEvents?: boolean;
|
||||
panelClass?: string;
|
||||
zIndex?: number; // default: 80
|
||||
position?: IPanelPosition;
|
||||
@ -331,16 +332,18 @@ declare namespace angular.material {
|
||||
addClass(newClass: string): void;
|
||||
removeClass(oldClass: string): void;
|
||||
toggleClass(toggleClass: string): void;
|
||||
focusOnOpen(): void;
|
||||
updatePosition(position: IPanelPosition): void;
|
||||
}
|
||||
|
||||
interface IPanelPosition {
|
||||
absolute(): IPanelPosition;
|
||||
relativeTo(someElement: string|JQuery|Element): IPanelPosition;
|
||||
top(opt_top: string): IPanelPosition; // default: '0'
|
||||
bottom(opt_bottom: string): IPanelPosition; // default: '0'
|
||||
left(opt_left: string): IPanelPosition; // default: '0'
|
||||
right(opt_right: string): IPanelPosition; // default: '0'
|
||||
top(top?: string): IPanelPosition; // default: '0'
|
||||
bottom(bottom?: string): IPanelPosition; // default: '0'
|
||||
start(start?: string): IPanelPosition; // default: '0'
|
||||
end(end?: string): IPanelPosition; // default: '0'
|
||||
left(left?: string): IPanelPosition; // default: '0'
|
||||
right(right?: string): IPanelPosition; // default: '0'
|
||||
centerHorizontally(): IPanelPosition;
|
||||
centerVertically(): IPanelPosition;
|
||||
center(): IPanelPosition;
|
||||
@ -360,5 +363,24 @@ declare namespace angular.material {
|
||||
open(opt_config: IPanelConfig): angular.IPromise<IPanelRef>;
|
||||
newPanelPosition(): IPanelPosition;
|
||||
newPanelAnimation(): IPanelAnimation;
|
||||
xPosition: {
|
||||
CENTER: string,
|
||||
ALIGN_START: string,
|
||||
ALIGN_END: string,
|
||||
OFFSET_START: string,
|
||||
OFFSET_END: string,
|
||||
};
|
||||
yPosition: {
|
||||
CENTER: string,
|
||||
ALIGN_TOPS: string,
|
||||
ALIGN_BOTTOMS: string,
|
||||
ABOVE: string,
|
||||
BELOW: string,
|
||||
};
|
||||
animation: {
|
||||
SLIDE: string,
|
||||
SCALE: string,
|
||||
FADE: string,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user