AlpineCreateViewChannelStoreConfig<T, R, A>

TYPE DEFINITION

The configuration for the createViewChannelStore function that creates an Alpine.js store.

Since 1.4.0

Properties

  • actions Optional

    A

    Optionally the actions you want to make available via the store.

    The idea is that the actions you provide is an object containing functions, these functions when called should do something to the viewChannel.

    This allows you to "stay" in HTML as much as possible when using the viewChannel.

    Defaults to undefined

    Since 1.4.0

  • viewChannel

    ViewChannel<T,R>

    The ViewChannel to subscribe to.

    Since 1.4.0