0.9.2 • Published 2 years ago

@dpa-id-components/dpa-event-item v0.9.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@dpa-id-components/dpa-event-item

DpaEventItem Vue 2.x domain sepecific for Events (i.e. topic and event items in dpa-Agenda) component based on the dpa Design Kit

Installation

yarn add @dpa-id-components/dpa-event-item

Usage

<!-- SomeComponent.vue using DpaEventItem -->
<template>
  <div ref="container">
    <dpa-event-item v-bind="eventProps" />
  </div>
</template>

<script>
  export default {
    data() {
      width: 0,
      resizeObserver: undefined,
      eventProps: {
        date: "27. September",
        dateDetail: "Ganztägig",
        title:
          "Auftakt des Kapitalanlegermusterverfahrens am OLG Stuttgart gegen die VW-Holding Porsche SE im Zusammenhang mit dem Dieselskandal",
        location: "Berlin",
        noticeType: "event",
        actionType: "favorite",
        comments: "10 Inhalte geplant",
      }
    },
  }
</script>

Demo

View a demo of <dpa-event-item> on Storybook

API

Props

NameTypeRequiredDescription
titleStringtrueThe title of the event or topic
dateStringtrueThe formatted date of the event or topic
dateDetailStringfalseAdditional date information (e.g. time)
noticeTypestringfalseEither "event" or "topic"
commentsStringfalseSupplementary text information (e.g. content)
sizeStringfalseSize variant; either small, medium, large
viewStringfalseWhich view variant should be used, compact or standard
topBooleanfalseIf the event item should displayed as "top entry"
descriptionStringfalseThe teaser text that should be displayed. Only applies to standard view.
truncateTitleBooleanfalseApplies a line-clamp of two rows to the event's title field.

Slots

NameDescription
actionsslot for a ui-menu activator button for further actions (e.g. copy, share)
addFavoriteActionslot for a ui-tooltip incl. activator button for add to favorite action
filtersslot for a DpaFilterBadge components
planningItemsslot for a DpaPlanningItem components
0.9.2

2 years ago

0.9.1

2 years ago

0.8.2-alpha.0

2 years ago

0.8.2-alpha.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.2

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.11

2 years ago

0.5.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.6

2 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago