This is a central component for our platform: it needs to be flexible to display different types of content:
course
question
answer
reply
simulation answer
search result
suggestion
in different ways:
short: only the most important feature is shown (title, main text) on one line, ellipsized (truncated with ...) if too long
long: all details are shown (title, description, author name and profile picture, tags, creation datetime, etc...) - in long question, ellipsize the description (excerpt in the figure below) to 2 lines
It is hosted by the List component (#46) that maps its content to appropriate variant of this ListEntry component.
[ ] component
[ ] CSS
APIs needed:
[ ] postUpvote
[ ] postDownvote
In all other cases they should be called by the parent List component.
This is a central component for our platform: it needs to be flexible to display different types of content:
in different ways:
It is hosted by the List component (#46) that maps its content to appropriate variant of this ListEntry component.
APIs needed:
In all other cases they should be called by the parent List component.
Examples:
Long Question: