2.1.0 • Published 3 months ago

inboost-widget-client v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

INBOOST widget client

To install widget to some project

API

createWidget({
    apiKey: string;
    selector?: string;
    apiDomain: string;
    config?: {
        placeLocation: "Right" | "Left";
        indentation: {
            onSide: number;
            onBottom: number;
        };
    };
    widgetDomain?: string;
})

Installation

npm

npm install inboost-widget-client
import * as iWidget from "inboost-widget-client";

document.addEventListener("DOMContentLoaded", () => {
    iWidget.createWidget({
        apiKey: // client API key from inboost
        selector: // by default its body
        apiDomain: // client portal API domain
        config: {
            placeLocation: // by default Right
            indentation: {
                onSide: // px from placeLocation
                onBottom: // px
            }
        }
        widgetDomain: // by default https://widgets.inboost.ai/
    })
})

html

<body>
    <div id="widget"></div>
    <script src="https://www.npmjs.com/package/inboost-widget-client"></script>

     <script>
            window.createWidget({ 
                apiKey: // client API key from inboost, 
                apiDomain: // client portal API domain, 
                selector: "#widget" 
                 config: {
                    placeLocation: // by default Right
                    indentation: {
                        onSide: // px from placeLocation
                        onBottom: // px
                    }
                }
                widgetDomain: // by default https://widgets.inboost.ai/
            });
    </script>
</body>
2.1.0

3 months ago

2.0.9

4 months ago

2.0.11

4 months ago

2.0.10

4 months ago

2.0.5

4 months ago

2.0.7

4 months ago

2.0.6

4 months ago

2.0.8

4 months ago

2.0.3

4 months ago

2.0.2

4 months ago

2.0.4

4 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.4.6

4 months ago

1.4.5

4 months ago

1.4.9

4 months ago

1.4.8

4 months ago

1.4.7

4 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.7

4 months ago

1.3.6

4 months ago

1.3.8

4 months ago

1.3.5

4 months ago

1.3.4

4 months ago

1.3.3

4 months ago

1.3.2

4 months ago

1.3.1

5 months ago

1.3.0

5 months ago

1.2.0

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago