Timeline
A Timeline is a display of a list of events in chronological order. It is typically a graphic design showing a long bar labelled with dates alongside itself and usually events. Timelines can use any time scale, depending on the subject and data.
QTimeline has 3 media breakpoints (if responsive
property is used). View on a desktop and click the “View Desktop” link on the right side, then resize the browser window to see the media breakpoints in action.
Installation
Edit /quasar.conf.js
:framework: {
components: [
'QTimeline',
'QTimelineEntry'
]
}
Basic Usage
<q-timeline responsive color="secondary"> |
Customize Entries Titles via slots
Quasar v0.17.18+<q-timeline responsive color="secondary">
<q-timeline-entry
subtitle="April 22, 1991"
side="left"
>
<div>
Lorem ipsum dolor sit amet.
</div>
<!--
Use the class q-timeline-title to stick to original styling when using slots
-->
<h3 slot="title" class="q-timeline-title">
<q-icon name="account_balance" />
<span>Event</span>
<em>Title</em>
</h3>
<!--
Use the class q-timeline-subtitle to stick to original styling when using slots
-->
<h5 slot="subtitle" class="q-timeline-subtitle">
<q-icon name="warning" />
<span>April 22,</span>
<em>1991</em>
</h5>
</q-timeline-entry>
</q-timeline>
QTimeline (Parent) Vue Properties
Vue Property | Type | Description |
---|---|---|
responsive | Boolean | (v0.17.7+) Enable responsive mode |
color | String | Color of the timeline element |
no-hover | Boolean | Don’t apply any hover effects |
dark | Boolean | When rendering on a dark background. |
QTimelineEntry (Child) Vue Properties
Vue Property | Type | Description |
---|---|---|
heading | Boolean | Display a timeline subject which helps group timeline entries into separate chunks. |
tag | String | HTML tag to use to render the timeline entry DOM element. |
side | String | On wider windows, you can choose on which side to display this entry (left or right ). Default is on the right side. |
icon | String | Icon to use. |
color | String | Color to use for this entry. |
title | String | Title of the entry. |
subtitle | String | Addition to title of the entry. |