2.1.0 • Published 5 years ago
@imagina/qhelper v2.1.0
QHELPER 2.0.2
This package content methods with helpers to coding more easy and fast
Installation
npm i @imagina/qhelper@2.0.2
Plugins
Alert
Activate alert in bottom-right position. to use it, callthis.$alert
. The availables types are :success
,error
,info
,warning
,light
,dark
. Usage:this.$alert.success('message') // To send only the message this.$alert.success({message : '', timeOut : 4000}) //To set timeOut
Array
Sintax Description $array.tree(array, {label, id})
Format array to use as options in components tree-select
andq-select
$array.parents(array, id)
Return all parents from array, setting ID parameter to search into a array $array.children(array, id)
Return all childrens from array, setting ID parameter to search into a array $array.diff(array1, array2)
Search differences between two arrays Cache
Use this plugin to save information in cache of client side
Sintax Description $cache.set(key, data)
Create or update item un cache $cache.get.item(key)
Get a item from cache $cache.get.items([key,key2,...])
Get items from cache $cache.remove(key)
Remove item from cache Helper
Sintax Description $helper.timetamp()
Return current date in timestamp format, if set a parameter date, return this date in timestamp format $helper.getInt(value)
Return only integer values from a string $helper.convertToFrontField(fields)
Change format to 'fields' data, to use in front-end, if you set a second parameter this will be merged with the frist parameter $helper.convertToBackField(fields)
Change format to 'fields' data, to send to back-end $helper.convertStringToSnakeCase(fields)
Change a string to snake case. $helper.toSnakeCase(object)
Change keys from object to snake case $helper.checkPassword(pasword)
Check if password has a correct format $helper.validateEmail(email)
Check if email has a correct format $helper.filterOptions(val, options, permitValues)
Filter options to component qselect
2.1.0
5 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.0
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago