sling-web-component-sdk-connect

1.12.5 • Public • Published

sling-web-component-sdk-connect

Install

npm install sling-web-component-sdk-connect

## Tag

  <sling-sdk-connect></sling-sdk-connect>

## Attributes and properties

Name Type Default Values ReflectToAttribute Observer callSdk
store Function
state Object
dispatch Function
subscribe Function

Description

Name Description
store Receives a Redux Store.
state The current Store state. The same as calling getState() on Redux.
dispatch Disables the button, preventing the user from clicking and changing their style to dimmed
subscribe A pre-configured value for size of button, can be normal, small or big.

Events

This component does not emit events.

Examples

<sling-sdk-connect></sling-sdk-connect>
import { MyReduxStore } from './my-redux-store.js';
const sdkStore = document.querySelector('sling-sdk-connect');
sdkStore.store = MyReduxStore;
console.log(sdkStore.state);

Readme

Keywords

none

Package Sidebar

Install

npm i sling-web-component-sdk-connect

Weekly Downloads

2

Version

1.12.5

License

none

Unpacked Size

369 kB

Total Files

16

Last publish

Collaborators

  • sling-web