Course list
Course list is used for ex in showing the list of course realizations. CourseListType should be passed in JSON as "list" or "grid" value.
# Examples
<hy-content-list
link-label = "Go to course page"
credits-label ="cr"
data-items='[
{"HISK-221":{"code":"HISK-221","name":"Science and ideas","credits":"5",
"realisations":{
"1621198800":{"studyFormat":"Lectures","startDate":"2021-05-17","endDate":"2021-05-28",
"name":"Science and ideas","teachingLanguage":"Finnish",
"enrolmentLink":"https://studies.helsinki.fi/opintotarjonta/cur/hy-CUR-136471103",
"tags":[]}}},
"HISK-120":{"code":"HISK-120","name":"Ancient and Medieval history","credits":"5",
"realisations":{
"1616364000":{"studyFormat":"Lectures","startDate":"2021-03-22","endDate":"2021-05-26",
"name":"Lectures","teachingLanguage":"Finnish",
"enrolmentLink":"https://studies.helsinki.fi/opintotarjonta/cur/hy-CUR-136471103",
"tags":{"urn:code:custom:hy-university-root-id:opintotarjonta:sopii_lukiolaisille":"Suitable for upper secondary students"}
}}},
"HISK-141":{"code":"HISK-141","name":"19th and 20th centuries I","credits":"5","realisations":[]},
"courseListType":"list"}
]'
>
</hy-content-list>
# Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
dataItems | data-items | [] \| string | undefined | |
linkLabel | link-label | string | "Go to course page" |