File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { NgLineEdit } from './line-edit';
1111import { NgPlainTextEdit } from './pline-text-edit' ;
1212import { NgRadioButton } from './radiobutton' ;
1313import { NgProgressBar } from './progress-bar' ;
14+ import { NgScrollArea } from './scroll-area' ;
1415
1516export type Constructable < T > = new ( ) => T ;
1617export type NgComponentClass = Constructable < NgComponent > ;
@@ -34,5 +35,6 @@ export class ComponentsMap {
3435 this . map . set ( NgPlainTextEdit . nodeName , NgPlainTextEdit ) ;
3536 this . map . set ( NgRadioButton . nodeName , NgRadioButton ) ;
3637 this . map . set ( NgProgressBar . nodeName , NgProgressBar ) ;
38+ this . map . set ( NgScrollArea . nodeName , NgScrollArea ) ;
3739 }
3840}
Original file line number Diff line number Diff line change 1+ import { QScrollArea } from '@nodegui/nodegui' ;
2+ import { NgComponent } from './component' ;
3+ import { RendererStyleFlags2 } from '@angular/core' ;
4+
5+ export class NgScrollArea extends QScrollArea implements NgComponent {
6+ public static nodeName = 'scrollarea' ;
7+ public parent : any ;
8+
9+ public appendChild ( newChild : any ) : void {
10+ throw new Error ( 'Method not implemented.' ) ;
11+ }
12+
13+ public insertBefore ( newChild : any , refChild : any ) { }
14+
15+ public setNgAttribute (
16+ name : string ,
17+ value : string ,
18+ namespace ?: string | null
19+ ) : void { }
20+
21+ public setProperty ( name : string , value : boolean | string ) : void {
22+ switch ( name ) {
23+ case 'enabled' :
24+ this . setEnabled ( value as boolean ) ;
25+ break ;
26+ default :
27+ break ;
28+ }
29+ }
30+
31+ public setStyle (
32+ style : string ,
33+ value : any ,
34+ flags ?: RendererStyleFlags2
35+ ) : void {
36+ this . setInlineStyle ( `${ style } :${ value } ` ) ;
37+ }
38+
39+ public setValue ( value : string ) : void { }
40+
41+ removeAttribute ( name : string , namespace ?: string ) : void {
42+ throw new Error ( 'Method not implemented.' ) ;
43+ }
44+ removeChild ( oldChild : any ) : void {
45+ throw new Error ( 'Method not implemented.' ) ;
46+ }
47+ removeClass ( name : string ) : void {
48+ throw new Error ( 'Method not implemented.' ) ;
49+ }
50+ removeStyle ( style : string , flags ?: RendererStyleFlags2 ) : void {
51+ throw new Error ( 'Method not implemented.' ) ;
52+ }
53+ }
You can’t perform that action at this time.
0 commit comments