Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Gottschalk
bmdl-expert-modeler
Commits
05614d82
Commit
05614d82
authored
Nov 08, 2021
by
Alexander Philipp Nowosad
Browse files
Fix instance info box
parent
6dae1f17
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/canvas/instances/instance-info-box/instance-info-box.component.html
View file @
05614d82
<div
class=
"my-3 p-3 bg-white rounded shadow-sm"
>
<h6
class=
"border-bottom border-gray pb-2 mb-0"
>
Instance
Info
</h6>
<h6
class=
"border-bottom border-gray pb-2 mb-0"
>
Info
</h6>
<table
class=
"table table-sm mb-0"
style=
"table-layout: fixed"
>
<tbody>
<tr
class=
"table-borderless"
>
<th
scope=
"row"
style=
"width: 250px"
>
Instance
Name
</th>
<th
scope=
"row"
style=
"width: 250px"
>
Name
</th>
<td>
{{ instance.name }}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Instance
Description
</th>
<th
scope=
"row"
>
Description
</th>
<td>
{{ instance.description }}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Instance
Type
</th>
<tr
*ngIf=
"featureModel.type === expertModelTypeName()"
>
<th
scope=
"row"
>
Type
</th>
<td>
{{ instance.type }}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Feature Model
</th>
<td>
{{ featureModel.name
}}
<span
*ngIf=
"featureModel.hasOwnProperty('version')"
>
({{ $any(featureModel).version }} )
</span
>
</td>
</tr>
<tr>
<th
scope=
"row"
>
Feature Model Type
</th>
<td>
{{
featureModel.hasOwnProperty('version')
? 'Canvas Building Block'
: 'Composed Model'
}}
</td>
</tr>
</tbody>
</table>
</div>
src/app/canvas/instances/instance-info-box/instance-info-box.component.ts
View file @
05614d82
import
{
Component
,
Input
}
from
'
@angular/core
'
;
import
{
FeatureModel
}
from
'
../../../canvas-meta-model/feature-model
'
;
import
{
Instance
}
from
'
../../../canvas-meta-model/instance
'
;
import
{
ExpertModel
}
from
'
../../../canvas-meta-model/expert-model
'
;
@
Component
({
selector
:
'
app-instance-info-box
'
,
...
...
@@ -10,4 +11,8 @@ import { Instance } from '../../../canvas-meta-model/instance';
export
class
InstanceInfoBoxComponent
{
@
Input
()
featureModel
:
FeatureModel
;
@
Input
()
instance
:
Instance
;
expertModelTypeName
():
string
{
return
ExpertModel
.
typeName
;
}
}
Write
Preview
Supports
Markdown
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