Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dynacmic-myhr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
dynacmic-myhr
Commits
e454f58f
Commit
e454f58f
authored
Jul 23, 2024
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เรีนก widjet
parent
da9585e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
layout-widjet.component.css
src/app/layout-widjet/layout-widjet.component.css
+14
-1
layout-widjet.component.html
src/app/layout-widjet/layout-widjet.component.html
+1
-1
layout-widjet.component.ts
src/app/layout-widjet/layout-widjet.component.ts
+9
-1
No files found.
src/app/layout-widjet/layout-widjet.component.css
View file @
e454f58f
body
,
html
{
overflow-
y
:
auto
!important
;
overflow-
x
:
hidden
!important
;
margin
:
0
!important
;
padding
:
0
!important
;
/* height: 200%; */
}
::-webkit-scrollbar
{
width
:
0px
;
}
::-webkit-scrollbar-track
{
background
:
transparent
;
}
::-webkit-scrollbar-thumb
{
background
:
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
6px
;
}
::-webkit-scrollbar-thumb:hover
{
background
:
rgba
(
0
,
0
,
0
,
0.4
);
}
src/app/layout-widjet/layout-widjet.component.html
View file @
e454f58f
<div
class=
"row"
style=
"background-color:transparent;"
>
<div
#
rowWidjet
class=
"row"
style=
"background-color:transparent;"
>
<app-services
[
id
]="
item
.
id
"
*
ngFor=
"let item of widgetList"
class=
"col-{{item.width}}"
style=
"margin-top: 5px;"
></app-services>
</div>
src/app/layout-widjet/layout-widjet.component.ts
View file @
e454f58f
import
{
Component
,
OnInit
,
ViewEncapsulation
}
from
'@angular/core'
;
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnInit
,
ViewChild
,
ViewEncapsulation
}
from
'@angular/core'
;
import
{
ServicesComponent
}
from
'../services/services.component'
;
import
{
Service
,
WidjetService
}
from
'../services/widjet.service'
;
import
{
CommonModule
}
from
'@angular/common'
;
...
...
@@ -13,6 +13,7 @@ import { ActivatedRoute } from '@angular/router';
encapsulation
:
ViewEncapsulation
.
None
})
export
class
LayoutWidjetComponent
implements
OnInit
{
@
ViewChild
(
'rowWidjet'
,
{
static
:
false
})
rowWidjet
?:
ElementRef
;
appName
=
""
widjetId
=
0
widgetList
:
Service
[]
=
[]
...
...
@@ -24,7 +25,14 @@ export class LayoutWidjetComponent implements OnInit {
}
ngAfterViewChecked
():
void
{
const
rowWidjet
=
this
.
rowWidjet
!
.
nativeElement
;
const
message
=
{
type
:
'greeting'
,
text
:
rowWidjet
.
offsetHeight
};
window
.
parent
.
postMessage
(
message
,
'*'
);
}
ngOnInit
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment