1.0.14 • Published 4 years ago

validation_useable v1.0.14

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

Validation Package

This package has been created for validate information that users enter in text field. If user entered information in text field not match with the regular expression that defined, will alert validate text under text field.


Usage

This package can use with Vuetify only. You must have vue project with vuetify installed.

First --> install package

# validation_useable is name of package to created.

npm i validation_useable

Second --> config your file.vue

# import your package

<script>
import Validation from "validation_useable/validation.js";

export default {

data: () => ({
  ...Validation
});
</script>

Third --> use function in rules property

<v-text-field
  v-model="editedItem.number"
  label="Number"
  outlined
  dense
  required
  :rules="[required('Number'), numberOnly()]"
></v-text-field>

*required and numberOnly** is function to called from your package. You will see function required* has 'Number',

this is the incoming parameter we defined in the function. But function numberOnly has no incoming parameters

because we don't define them in the function.

1.0.14

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago