0.0.20 • Published 4 years ago

vue-input-search v0.0.20

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

input vue search

inp-v-search

Live

vue search input

Installation

npm i vue-input-search

Default import

Install all the components:

import 'vue-input-search/dist/vue-search.css'
import VueSearch from 'vue-input-search/dist/vue-search.common'

const app = new Vue({
    el: '#app',
    components:{
        'vue-search':VueSearch
    }
}
<vue-search 
    :img-photo="'path-img'" 
    @newitem="newitem()" 
    @itemselected="itemselected($event)" 
    :source-field="'name'" 
    :show-new-botton="true"
    :search-by-field="false"
    :api-source="'https://url-data-source'"
    ></vue-search>

Settings

OptionTypeDefaultDescription
placeholderString''Placeholder text
showNewBottonBooleantrueShow or not the new bottom
isRequiredBooleanfalseis required
enableClassBaseBooleantrueShow or not 'content-input'
searchByFieldBooleantrueEnable find by field name of datasource
txtNotFoundString'No one found with that name'Text when there is no data
txtBtnNewString'Create A New Element'Text of new button
inputClassObject{}Custom class css {'form-control':true}
modelString''Model
imgPhotoString''Image of circle list element
ApiSourceString''Acces point API
SourceFieldString'name'If searchByField is true use this
0.0.20

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

5 years ago