متد ها
console
متد ها:
| Method | Type | inputs | Description |
| log | void | message: any | متن داده شده را در صفحه ی دیباگ نمایش می دهد |
| clear | void | - | متن های صفحه ی دیباگ را پاک می کند |
Appsan
متد ها:
| Method | Type | inputs | Description |
| setProperty | void | elementId: string, propertyName: string, propertyValue | تغییر مقدار پراپرتی یک المان |
| setVariable | void | variableId: string, variableValue: string | تغییر مقدار یک variable |
| runUpdate | void | updateJson: string | اجرای update |
| runAction | void | actions: string | اجرای action |
| findElementById | {id, value, ...} | id: string | گرفتن یک المان با id |
HTTPClient
| Method | Type | Inputs |
| get | {subscribe: (success(), error(), finally()) => void} | url: string, options: {headers: {name: value,...}} |
| post | {subscribe: (success(), error(), finally()) => void} | url: string, body: |
| put | {subscribe: (success(), error(), finally()) => void} | url: string, body: |
| delete | {subscribe: (success(), error(), finally()) => void} | url: string, options: {headers: {name: value,...}} |
| patch | {subscribe: (success(), error(), finally()) => void} |
url: string, body: |
FormData
File Apis
اضافه شده در ورژن appsan-js:0.1.51
اظلاعات بیشتر در Web File Api
کلاس ها:
Blob
File
FileList