forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grid-list): hide overflow on tiles (angular#1299)
- Loading branch information
1 parent
e160668
commit 617f514
Showing
9 changed files
with
44 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
import {Component} from '@angular/core'; | ||
import {BaseSnackBarContent} from './base-snack-bar'; | ||
import {MdSnackBarRef} from './snack-bar-ref'; | ||
|
||
|
||
/** | ||
* A component used to open as the default snack bar, matching material spec. | ||
* This should only be used internally by the snack bar service. | ||
*/ | ||
@Component({ | ||
moduleId: module.id, | ||
selector: 'simple-snack-bar', | ||
templateUrl: 'simple-snack-bar.html', | ||
styleUrls: ['simple-snack-bar.css'], | ||
}) | ||
export class SimpleSnackBar extends BaseSnackBarContent<SimpleSnackBar> { | ||
export class SimpleSnackBar { | ||
/** The message to be shown in the snack bar. */ | ||
message: string; | ||
|
||
/** The label for the button in the snack bar. */ | ||
action: string; | ||
|
||
/** The instance of the component making up the content of the snack bar. */ | ||
snackBarRef: MdSnackBarRef<SimpleSnackBar>; | ||
|
||
/** Dismisses the snack bar. */ | ||
dismiss(): void { | ||
this.snackBarRef.dismiss(); | ||
} | ||
|
||
/** If the action button should be shown. */ | ||
get hasAction(): boolean { return !!this.action; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters