s3-kennisbank

View the Project on GitHub HU-SD-S3/s3-kennisbank

data-list-item

Description

The data-list-item component represents a single user data entry in the list. It displays the user's name, telephone number, and email, along with "Edit" and "Delete" buttons. When the buttons are clicked, it dispatches custom events to notify the parent component of the actions taken.

CSS Variables

Note: Alternate row coloring is applied using :host(:nth-child(even)) to work with Shadow DOM.

Attributes

Data shape / example

Example User object:

{
  "id": 1,
  "name": "Alice Example",
  "email": "alice@example.com",
  "phone": "+15551234567"
}

Note: id may be omitted when creating a new user.

Events

(Custom)Events listened to

none

(Custom)Events dispatching

Required Services

Slots

none


<- back to README