2.0.60 • Published 1 year ago

@lvble/core v2.0.60

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@lvble/core

@lvble/core is a JavaScript package that provides a set of core functionalities for building interactive web applications with the lvble platform. It includes widgets and modals.

⚡️ Quick start

NPM

You can install @lvble/core using npm (Node Package Manager). Make sure you have Node.js and npm installed on your machine. Open your terminal or command prompt and run the following command:

npm install @lvble/core

In your index.html:

<html>
  <head>
    <title>PMS</title>
  </head>

  <body>
    <h1>Welcome to the best PMS ever!</h1>
    <table style="width: 50%; margin: 0 auto;">
      <tr>
        <th>Lvble</th>
      </tr>
      <tr>
        <td><button onclick="openLvbleExperience()">Lvble</button></td>
      </tr>
      <tr>
        <td>Status</td>
      </tr>
    </table>
    <script type="module" src="/main.js"></script>
  </body>
</html>

And in your main.js file:

import { Lvble } from "@lvble/core";
// Widgets
const l = Lvble({
  environment: "sandbox",
  onEvent: function (eventType: string, data: any) {
      switch (eventType) {
        case "EXPERIENCE_OPENED":
          ...
          break;
        case "EXPERIENCE_CLOSED":
          ...
          break;
          ...
        default:
          break;
      }
  }
});
const lvbleWidget = l.createWidget({
  token: "token"
});

document
  .getElementById("lvble-widget")
  .appendChild(lvbleWidget);

// Lvble experience
const openLvbleExperience = () =>
  l.open({
    token: "token"
  });

<script> tag

Alternatively, you can include @lvble/core directly in your HTML file using a script tag like it's 1997 😎
Add the following line inside the <head> or at the end of the <body> tag:

<script src="https://unpkg.com/@lvble/core"></script>

Please refer to the documentation of @lvble/core for a complete list of available functionalities and their usage instructions.

Kudos

This template
Ignacio Miranda Figueroa

License

MIT

Creator

Lior Pollak

2.0.60

1 year ago

2.0.59

1 year ago

2.0.57

1 year ago

2.0.58

1 year ago

2.0.56

1 year ago

2.0.49

1 year ago

2.0.53

1 year ago

2.0.54

1 year ago

2.0.51

1 year ago

2.0.52

1 year ago

2.0.50

1 year ago

2.0.48

1 year ago

2.0.47

2 years ago

2.0.46

2 years ago

2.0.45

2 years ago

2.0.44

2 years ago

2.0.43

2 years ago

2.0.42

2 years ago

2.0.41

2 years ago

2.0.40

2 years ago

2.0.39

2 years ago

2.0.38

2 years ago

2.0.37

2 years ago

2.0.36

2 years ago

2.0.35

2 years ago

2.0.34

2 years ago

2.0.33

2 years ago

2.0.32

2 years ago

2.0.31

2 years ago

2.0.30

2 years ago

2.0.29

2 years ago

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.12

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago