Skip to content

Commit ca9c6e8

Browse files
authored
Merge pull request #13 from mindedge/dev
fix(yarn): Updated lock for v1.15.1
2 parents 27ee611 + 25b9149 commit ca9c6e8

File tree

2 files changed

+7881
-7944
lines changed

2 files changed

+7881
-7944
lines changed

docs/content/en/api/query-builder-methods.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ await Model.$find(1)
365365
They handle and unwrap responses within "data".</alert>
366366

367367
## `file`
368+
369+
<alert type="success">Available in version >= v1.15.0</alert>
370+
368371
- Returns: `Binary`
369372

370373
Execute the query with $http.responseType as `blob` and returns a binary
@@ -374,10 +377,10 @@ Execute the query with $http.responseType as `blob` and returns a binary
374377
const data = await Model.file()
375378

376379
// force file download
377-
const url = window.URL.createObjectURL(new Blob([data]));
378-
const link = document.createElement('a');
379-
link.href = url;
380-
link.setAttribute('download', 'model.xlsx'); //or any other extension
381-
document.body.appendChild(link);
382-
link.click();
383-
```
380+
const url = window.URL.createObjectURL(new Blob([data]))
381+
const link = document.createElement('a')
382+
link.href = url
383+
link.setAttribute('download', 'model.xlsx') //or any other extension
384+
document.body.appendChild(link)
385+
link.click()
386+
```

0 commit comments

Comments
 (0)