Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a more DRY way to create dialogs from JavaScript/TypeScript whi…
…ch removes lots of noise from the controllers (especially if you have a few dialogs)
- Loading branch information
Showing
4 changed files
with
31 additions
and
27 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 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module Core { | ||
|
||
export class Dialog { | ||
public show = false; | ||
|
||
public options = { | ||
backdropFade: true, | ||
dialogFade: true | ||
}; | ||
|
||
|
||
public open() { | ||
this.show = true; | ||
} | ||
|
||
public close() { | ||
this.show = false; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -702,5 +702,4 @@ module Core { | |
} | ||
return null; | ||
} | ||
|
||
} |