ht2-business-directory
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

Hiretrades Business Directory - Plugin

Installation

1. Install

yarn add ht2-business-directory@2.0.8
# or
npm i ht2-business-directory@2.0.8 --save

2. Plug-in

import HiretradesBusinessDirectory from 'ht2-business-directory'
 
Vue.use(HiretradesBusinessDirectory)
 
new Vue({
  // your vue config
  directorySettings: new HiretradesBusinessDirectory(),
})

3. Use in your components

 
<template>
  <ht2-business-directory 
    :category_id='29' 
    state='WA' 
    suburb='PERTH' 
    :nearby='100'
    :itemsperpage='9' 
    headertext='Business Directory - Air Con'
  />
</template>
 

4. Props

    headertext: { 
      type: String
    },
    profileurl: {
      type: String,
      default: 'https://www.hiretrades.com.au/profile/'
    },
    category: {
      type: Number,
      default: 29
    },
    suburb: {
      type: String
    },
    state: {
      type: String
    },
    lat: {
      type: Number
    },
    lon: {
      type: Number
    },
    itemsperpage: {
      type: Number,
      default: 9
    },
    nearby: {
      type: Number,
      default: 50
    },
    showlocationdetails: {
      type: Boolean,
      default: false
    },
    shadowclass: {
      type: Boolean,
      defrault: false
    },
    showtypetext: {
      type: Boolean,
      default: true
    },
    showdistancetext: {
      type: Boolean,
      default: true
    }

DEMO URL

http://ht2-dev.hiretrades.com.au/testbusinessdirectory/
# or

git clone https://github.com/JosephMendez/ht2-business-directory

cd ht2-business-directory

and run command

yarn examples:ht2businessdirectory

# or
npm install
npm run examples:ht2businessdirectory

License

MIT

Package Sidebar

Install

npm i ht2-business-directory

Weekly Downloads

1

Version

2.0.8

License

MIT

Unpacked Size

217 kB

Total Files

15

Last publish

Collaborators

  • josephmendez