1.0.8 • Published 2 years ago

coopax-book-event-widget v1.0.8

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

coopax-book-event-widget

Install web component

npm install --save coopax-book-event-widget

In your main.js, or a similar entry point for your app:

import CoopaxBookEventWidget from 'coopax-book-event-widget';
import Vue from 'vue';
Vue.component(CoopaxBookEventWidget);

Now it's able to use anywhere in your app like this

<coopax-book-event-widget
    src="https://test-api.coopax.com"
    venue-id="126694"
    event-name-label="Event name"
    event-name-placeholder=""
    purpose-label="purpose input label"
    purpose-placeholder="purpose input label"
    business-category-label="Business"
    other-category-label="Other"
    no-purpose-text="No purpose available"
    quick-quotation-button-text="Quick quotation"
  ></coopax-book-event-widget>

You can import directly to html file by using our CDN

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Coopax - Web Component</title>
  <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet">
  <link href="https://cdn.materialdesignicons.com/5.4.55/css/materialdesignicons.min.css" as="style" media="all" rel="stylesheet" type="text/css">
  <link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel='preload' as="style" type='text/css'>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
  <script src="https://coopax-book-event-widget.s3.amazonaws.com/coopax-book-event-widget.min.js"></script>
</head>

<body>
  <coopax-book-event-widget
    src="https://test-api.coopax.com"
    venue-id="126694"
    event-name-label="Event name"
    event-name-placeholder=""
    purpose-label="purpose input label"
    purpose-placeholder="purpose input label"
    business-category-label="Business"
    other-category-label="Other"
    no-purpose-text="No purpose available"
    quick-quotation-button-text="Quick quotation"
  >
  </coopax-book-event-widget>
</body>

<style>
  coopax-book-event-widget::part(web-comp-container) {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  coopax-book-event-widget::part(start-date-container) {
    display: block;
  }

  coopax-book-event-widget::part(start-date-input) {
    display: block;
  }

  coopax-book-event-widget::part(end-date-container) {
    display: block;
  }

  coopax-book-event-widget::part(end-date-input) {
    display: block;
  }

  coopax-book-event-widget::part(purpose-container) {
    display: block;
  }

  coopax-book-event-widget::part(purpose-input) {
    display: block;
  }

  coopax-book-event-widget::part(actions-container) {
    display: block;
  }

  coopax-book-event-widget::part(quick-quotation-button) {
    display: block;
  }

  coopax-book-event-widget::part(quick-quotation-button--text) {
    display: block;
  }
</style>
</html>

Customize configuration

See Configuration Reference.

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago