@nospamproxy/core
    Preparing search index...

    A dropdown item with a custom action callback.

    <generic-dropdown>
    Display content...

    <dropdown-items slot="content">
    <dropdown-item action.bind="someAction">
    Select me!
    </dropdown-item>
    </dropdown-items>

    <generic-dropdown-content slot="content">
    Optional additional content below the items...
    </generic-dropdown-content>
    </generic-dropdown>

    Implements

    • ICustomElementViewModel
    Index

    Constructors

    Properties

    action: () => void

    A function that is called when the item is clicked.

    isHighlighted: boolean = false
    isSelected: boolean = false

    True to highlight this item as selected.