Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Requirement Formalization Tool
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Thodoris Nestoridis
Requirement Formalization Tool
Commits
630e6884
Commit
630e6884
authored
Apr 07, 2021
by
Thodoris Nestoridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui paginator
parent
03fa2c1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
boilerplate-list.component.ts
...components/boilerplate-list/boilerplate-list.component.ts
+6
-1
No files found.
reqtool/ReqmanAngular11/src/app/components/boilerplate-list/boilerplate-list.component.ts
View file @
630e6884
import
{
Component
,
OnInit
,
AfterViewInit
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
Boilerplate
}
from
'src/app/models/boilerplate.model'
;
import
{
BoilerplateData
}
from
'src/app/models/boilerplate.model'
;
import
{
InferenceResults
}
from
'src/app/models/boilerplate.model'
;
...
...
@@ -6,6 +6,7 @@ import { BoilerplateService } from 'src/app/services/boilerplate.service';
import
{
PrefixService
}
from
'src/app/services/prefix.service'
;
import
{
ActivatedRoute
,
Router
}
from
'@angular/router'
;
import
{
MatTableDataSource
}
from
'@angular/material/table'
;
import
{
MatPaginator
}
from
'@angular/material/paginator'
;
...
...
@@ -35,6 +36,9 @@ export class BoilerplateListComponent implements OnInit {
newdataSource
=
new
MatTableDataSource
(
this
.
thenewdataSource
);
infer
:
InferenceResults
[]
=
[{}];
@
ViewChild
(
MatPaginator
)
paginator
=
this
.
newdataSource
.
paginator
;
dataofboilerplates
:
any
[]
=
[];
aprefix
:
any
[]
=
[];
main
:
any
;
...
...
@@ -70,6 +74,7 @@ export class BoilerplateListComponent implements OnInit {
this
.
boilerplatesdata
=
data
;
this
.
thenewdataSource
=
data
;
this
.
newdataSource
=
new
MatTableDataSource
(
this
.
thenewdataSource
);
this
.
newdataSource
.
paginator
=
this
.
paginator
;
console
.
log
(
data
)
},
error
=>
{
...
...
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