File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ npm start
3131
3232<p align =" center " >
3333 <img src =" https://raw.githubusercontent.com/irustm/angular-nodegui/master/demo/demo_start.png " width =" 350 " title =" angular nodegui demo " >
34+
35+ <img src =" https://raw.githubusercontent.com/irustm/angular-nodegui/master/demo/demo_widget.png " width =" 600 " title =" angular nodegui demo " >
3436</p >
Original file line number Diff line number Diff line change 1- < window #window title ="Angular app in window ! ">
1+ < window #window title ="Angular native app ! ">
22 < view id ="app ">
3- < image
4- id ="image "
5- [src] ="'./src/assets/angular.png' "
6- [aspectRatioMode] ="aspectRatioMode "
7- > </ image >
3+ < image id ="image " [src] ="'./src/assets/angular.png' " [aspectRatioMode] ="aspectRatioMode "> </ image >
84
95 < app-hello [name] ="name "> </ app-hello >
106
11- < text > Github name</ text >
12- < linedit
13- [text] ="name "
14- [placeholderText] ="'Insert github username' "
15- (textChanged) ="textChanged($event) "
16- > </ linedit >
7+ < text > Github username</ text >
8+ < linedit [text] ="name " [placeholderText] ="'Insert github username' " (textChanged) ="textChanged($event) "> </ linedit >
179
1810 <!-- <checkbox [checked]="true"></checkbox>
1911 <checkbox [checked]="true" [enabled]="false"></checkbox>
Original file line number Diff line number Diff line change 11#app {
2- background-color : gray ;
2+ background-color : white ;
33}
44
55#app-hello {
6- background-color : green ;
6+ background-color : rgb ( 0 , 162 , 255 ) ;
77}
Original file line number Diff line number Diff line change 55 OnInit ,
66 ElementRef
77} from '@angular/core' ;
8- import { AspectRatioMode , WindowType } from '@nodegui/nodegui' ;
8+ import { AspectRatioMode } from '@nodegui/nodegui' ;
99import { NgWindow } from '../../projects/angular-nodegui/src/lib/components/window' ;
1010
1111@Component ( {
@@ -25,9 +25,8 @@ export class AppComponent implements OnInit {
2525 ngOnInit ( ) {
2626 const win = this . window . nativeElement . parent ;
2727
28- win . setMinimumSize ( 630 , 560 ) ;
29- // win.setWindowFlag(WindowType.FramelessWindowHint, true);
30- // win.setWindowFlag(WindowType.Widget, true);
28+ win . resize ( 480 , 620 ) ;
29+ win . setMinimumSize ( 480 , 620 ) ;
3130 }
3231
3332 setName ( ) {
You can’t perform that action at this time.
0 commit comments