1.1.0 • Published 3 years ago

@mathewparet/vue-common-filters v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@mathewparet/vue-common-filters

A Vue.js set of filters that can commonly used

Installation

npm i @mathewparet/fvue-common-filters

Usage

Vue Initialization

import Vue from 'vue';
import filters from "@mathewparet/vue-common-filters";
Vue.use(filters);

Vue Usage

<div> Trimmed name is {{name | trim(15)}}</div>

Available Filters

trim()

ParameterDescriptionRequred?Default
max_lengthMaximum length after which text should be trimmedNo15
leadThe indicator text that shows text was trimmedNo...

dateFormat()

ParameterDescriptionRequired?Default
formatThe date format to be converted to. More formats can be found in moment's API. (https://momentjs.com/docs/#/parsing/string-format)Nollll
current_formatThe format in which the current date is fed inNoYYYY-MM-DDTHH:mm:ssZ
1.1.0

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago