@huymanh1812/coopax-book-event-at-event-planner-widget

1.0.0 • Public • Published

coopax-book-event-at-event-planner-widget

Install web component

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

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

import CoopaxBookEventAtEventPlannerWidget from 'coopax-book-event-at-event-planner-widget';
import Vue from 'vue';
Vue.component(CoopaxBookEventAtEventPlannerWidget);

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

<coopax-book-event-at-event-planner-widget
    src="https://test-api.coopax.com"
    event-planner-id="b608442e-bb44-406a-95e2-bbccccb3341b"
    event-planner-name="Huy_event_planner_2"
    :event-planner-organization-id="137322"
    event-name-label="Event name"
    event-name-placeholder=""
    purpose-label="Purpose"
    purpose-placeholder=""
    business-category-label="Business"
    other-category-label="Other"
    no-purpose-text="No purpose available"
    quick-quotation-button-text="Quick quotation"
    language-code="en"
></coopax-book-event-at-event-planner-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="../dist/coopax-book-event-at-event-planner-widget.js"></script>
	  <!--<script src="https://coopax-book-event-widget.s3.amazonaws.com/coopax-book-event-at-event-planner-widget.min.js"></script>-->
	</head>

	<body>
		<coopax-book-event-at-event-planner-widget
		  src="https://test-api.coopax.com"
		  event-planner-id="b608442e-bb44-406a-95e2-bbccccb3341b"
		  event-planner-name="Huy_event_planner_2"
		  :event-planner-organization-id="137322"
		  event-name-label="Event name"
		  event-name-placeholder=""
		  purpose-label="Purpose"
		  purpose-placeholder=""
		  business-category-label="Business"
		  other-category-label="Other"
		  no-purpose-text="No purpose available"
		  quick-quotation-button-text="Quick quotation"
		  language-code="en"
		></coopax-book-event-at-event-planner-widget>
	</body>

	<style>
	  coopax-book-event-at-event-planner-widget::part(coopax-book-event-at-event-planner-widget-container) {
	    max-width: 1000px;
	  }

	  coopax-book-event-at-event-planner-widget::part(purpose-container) {
	    min-width: 0;
	  }

	  coopax-book-event-at-event-planner-widget::part(purpose-input) {
	    min-width: 0;
	  }

	  coopax-book-event-at-event-planner-widget::part(actions-container) {
	    min-width: 0;
	  }

	  coopax-book-event-at-event-planner-widget::part(quick-quotation-button) {
	    min-width: 0;
	  }

	  coopax-book-event-at-event-planner-widget::part(quick-quotation-button--text) {
	    min-width: 0;
	  }
	</style>
</html>

Customize configuration

See Configuration Reference.

Package Sidebar

Install

npm i @huymanh1812/coopax-book-event-at-event-planner-widget

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.28 MB

Total Files

23

Last publish

Collaborators

  • huymanh1812