1.8.4 • Published 1 year ago

pineapple-contact-form v1.8.4

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

pineapple-contact-form

This component is designed to be utilized in pineapple.net.au projects only.

It needs the data from vuex store and can't be used outside the pineapple.net.au and landing pages of pineapple.net.au

Warning:

This component uses pineapple-popup component

You should install it for the normal work of Contact Form:

yarn add pineapple-popup

and then import it in your app:

import pineapple-popup

install component

yarn add pineapple-contact-form

Load the component and it's styles

App.vue

import 'pineapple-contact-form'
import 'pineapple-contact-form/dist/pineapple-contact-form.css'

Use the component

<UserContact
  :address="address"
  :buildingName="buildingName"
  :userForm="userForm"
  :emailSubject="emailSubject"
  :emailText="emailText"
  :emailEndpoint="emailAPIEndpoint"
  :emailTarget="emailTarget"
/>

emailEndpoint

Backend API endpoint to send data from the form


userForm

Fields of Form

For normal work this component waits for the userForm object

This object should contain such a props:

  • title (string)
  • button (string)
  • fieldsToShow (array of objects)

button prop is the text that will be shown on the submit button face

fieldsToShow

is array of objects

Each object describes the form field

{
  placeholder: '...', /* String | required */
  type: '...', /* String | required! */
  required: false, /* Boolean */
  available: [...] /* Array of available values for the field | optional, for combo and list types only */
}

Field types

  • text - simple text input field
  • number - simple number input field
  • email - input field with validation
  • postcode - input field with validation of australian post codes
  • state - selection field with validation of australian states
  • phone - field with validation of australian phone numbers
  • combo - input field with validation from the list of available values (available)
  • list - selection field from the list of available values (available)
  • message - textarea
1.8.1

1 year ago

1.8.4

1 year ago

1.5.5

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.7.91

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.7.9

1 year ago

1.7.7

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.7.5

1 year ago

1.5.7

1 year ago

1.7.4

1 year ago

1.3.0

3 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.4

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago