avesta-lib
v12.2.0
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
Downloads
3
Readme
AvestaLib
This library was generated with Angular CLI version 12.2.0.
รายการ Libraries
Validator lib
สำหรับส่วนของการแสดง Error messgae จาก Form Control ของ Angular
Translate lib
สำหรับทำ Multi language ของ Avesta มี 2 แบบ คือ Pipe และ Directive การเชื่อมต่อจะเป็น Onpromise (json file), Oncloud (json api)
Convert lib
ฟังก์ชั่นที่จำเป็นในการ Convert Data ดังนี้
paseJsonToFormData
- แปลงข้อมูล Json เป็น FormData รองรับกับ .net core เท่านั้น
parseBase64BlobToFile
- แปลงข้อมูล base64 ที่ได้มาจากไฟล์ blob|File กลับมาเป็นไฟล์
fileExctName
- ดึงชื่อนามสกุลจากไฟล์
strExctName
- ดึงชื่อนามสกุลจากชื่อสตริง
imageFileResize
- แปลงขนาดรูปภาพ เพื่อให้มีขนาดเล็กลงก่อนอัพโหลด
downloadFile
- ดาวน์โหลดไฟล์
Storage lib
ฟังก์ชั่นที่จำเป็นในการเก็บข้อมูลแบบชั่วคราว ซึ่งจะอยู่ในรูปแบบ Store Class
มี static method ดังนี้
Keys
ดึงข้อมูลคีย์ข้อมูลทั้งหมดของหน่วยความจำชั่วคราวนี้
Get
ดึงข้อมูลหน่วยความจำชั่วคราว
Set
สร้างข้อมูลหน่วยความจำชั่วคราว
Del
ลบข้อมูลหน่วยความจำชั่วคราว
Destroy
ลบข้อมูลหน่วยความจำชั่วคราวทั้งหมด
Created By
Wanchaloem Laoket from Avesta co., ltd.