-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List Value Component #37
Conversation
…the subnodes list of its root node
@tobiasschweizer I just noticed that this PR has problems with the creation of list value. So please do not review it for now. I vaguely remember that all list nodes of a project were supposed to share a root node, is that correct? I could not find anything in that regard in knora documentation. I know that from the lists endpoint of api-js-lib one can get a list with its root node IRI. My question is, should I proceed with such a gravsearch or is there a function in api-js-lib that I miss which can already return the root node? |
I think much like in the case of link values, you should find the info in the ontology:
|
I might wanna add a cache for whole lists (currently there is just a cache for list nodes). Actually this should be combined but it is kind of tricky ... |
@tobiasschweizer I believe this PR is ready to be reviewed. |
# Resolved Conflicts: # projects/knora-ui/src/lib/viewer/operations/display-edit/display-edit.component.html # projects/knora-ui/src/lib/viewer/viewer.module.ts # src/app/app.component.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SepidehAlassi I suggest some small changes/updates:
- in
sublist-value.component.ts
:- the selector name must be prefixed with "kui", e.g. kui-sublist-value (then do not forget to update the tag name in every html or spec files)
- you should clean up the imports, there is one unused import
- in
list-value.component.ts
:- l.50 the comment is not up-to-date ('initial link value label')
- l.58 you should use const instead of let because the identifier 'rootNodeIri' is never reassigned
@flavens thank you for reviewing this PR Flavie. |
…ue to kui-sublist-value
@flavens I've applied your suggestions. |
To display the value:
To edit the value:
edit list value as a List node
display the nodes of the root node in a nested drop-down menu
get the list node selected by the user and assign it to the object of list node property
edit comment value
cancel edit
test:
test display
test edit
test sublist component
closes #15