Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
11
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

DpaEventItem vue component with dpa Design Kit

0.9.2
latest
npmnpm
Version published
Weekly downloads
20
-25.93%
Maintainers
11
Weekly downloads
 
Created
Source

@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

FAQs

Package last updated on 20 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.