File
dataURLtoFile |
(dataurl, filename) base64 to file |
imageToBase64 |
async (file) image to base64 |
getExtensionFile |
(filename) |
getFileNameFromPath |
(path) |
checkFileExistence |
(file) Sử dụng khi upload file mà xóa ở dưới máy |
Format
numberFormatter |
(num, digits) - ,[digits] Format k | M | G | T | P | E |
toThousandFilter |
(num) format 400,000 |
kFormatter |
(num) format 40k |
Time
getYears |
(from, to, select = false) |
getMonths |
(from = 1, to = 12, select = false) |
getHours |
(from = 0, to = 23, select = false) |
getMinutes |
(step = 5, select = false) |
daysInMonth |
(dateString, subName = true, select = false) |
formatDate |
(date) |
secondToDay |
(second) |
parseTime |
(time, cFormat) parse time to format |
getTimeNowJP |
() |
parseTimeToTzJapan |
(date) |
roundTimeQuarterHour |
(time) |
disabledDateElDatePicker |
(time) Function handle disabled past date for datepicker of element ui |
resetDateToFirstHourOfTheDay |
(date) |
getDistanceDateWithNow |
(date) |
isAfterDate |
(dateAfter, dateBefore) |
|
|
Validate
checkOnlyNumber |
(string) |
checkNumberOneAndTwoByte |
(string) |
checkCharacterJP |
(string) |
checkCharacterTwoByte |
(string) |
checkOnlyFloatNumber |
(string) |
isString |
(string) |
isArray |
(argument) |
validateLowerCase |
(string) |
validateUpperCase |
(string) |
validateAlphabets |
(string) |
isEmailValid |
(email) |
validateOneByte |
(string) |
numberOneByte |
(string) |
validURL |
(url) |
|
|
Other
scrollToTop |
(top = 0) |
scrollToBottom |
() |
stripHtml |
(html) remove html tag |
convertBase64 |
(val) convert text to base 64 |
downloadTagA |
(url, filename) |
matchInArray |
(string, expressions) have expression in string? |
createUniqueString |
() |
debounce |
(func, wait, immediate) |
param2Obj |
(url) |
functionForSortJavascript ByAttributeAsc |
(item1, item2, attribute, sortTypeASC = true) function for Array.sort of javascript by attribute asc or desc |
removeTailwindClass |
(content) Sử dụng cho editor copy text dính class tailwind |
Vue 3
SpinnerV3 |
<SpinnerV3 :loading="loading" />
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by tronghao