mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
update doc
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
npm set registry http://devproducts.alfresco.me:4873
|
||||||
npm install --save ng2-alfresco-core ng2-alfresco-documentlist
|
npm install --save ng2-alfresco-documentlist
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Dependencies
|
#### Dependencies
|
||||||
@@ -21,7 +21,7 @@ npm install --save ng2-alfresco-core ng2-alfresco-documentlist
|
|||||||
Add the following dependency to your index.html:
|
Add the following dependency to your index.html:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Style
|
#### Style
|
||||||
@@ -35,10 +35,10 @@ npm install --save material-design-icons material-design-lite
|
|||||||
Also make sure you include these dependencies in your .html page:
|
Also make sure you include these dependencies in your .html page:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Google Material Design Lite -->
|
<!-- Google Material Design Lite -->
|
||||||
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
||||||
<script src="node_modules/material-design-lite/material.min.js"></script>
|
<script src="node_modules/material-design-lite/material.min.js"></script>
|
||||||
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
||||||
```
|
```
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
@@ -26,7 +26,7 @@ Components included:
|
|||||||
Add the following dependency to your index.html:
|
Add the following dependency to your index.html:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Style
|
#### Style
|
||||||
@@ -40,10 +40,10 @@ npm install --save material-design-icons material-design-lite
|
|||||||
Also make sure you include these dependencies in your .html page:
|
Also make sure you include these dependencies in your .html page:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Google Material Design Lite -->
|
<!-- Google Material Design Lite -->
|
||||||
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
||||||
<script src="node_modules/material-design-lite/material.min.js"></script>
|
<script src="node_modules/material-design-lite/material.min.js"></script>
|
||||||
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure your systemjs.config has the following configuration:
|
Make sure your systemjs.config has the following configuration:
|
||||||
|
@@ -29,7 +29,7 @@ This component, provide a buttons to upload files to alfresco.
|
|||||||
Add the following dependency to your index.html:
|
Add the following dependency to your index.html:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
<script src="node_modules/alfresco-core-rest-api/bundle.js"></script>
|
||||||
```
|
```
|
||||||
#### Style
|
#### Style
|
||||||
The style of this component is based on material design, so if you want to visualize it correctly you have to add the material
|
The style of this component is based on material design, so if you want to visualize it correctly you have to add the material
|
||||||
@@ -42,10 +42,10 @@ npm install --save material-design-icons material-design-lite
|
|||||||
Also make sure you include these dependencies in your .html page:
|
Also make sure you include these dependencies in your .html page:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Google Material Design Lite -->
|
<!-- Google Material Design Lite -->
|
||||||
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
||||||
<script src="node_modules/material-design-lite/material.min.js"></script>
|
<script src="node_modules/material-design-lite/material.min.js"></script>
|
||||||
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure your systemjs.config has the following configuration:
|
Make sure your systemjs.config has the following configuration:
|
||||||
|
@@ -21,9 +21,9 @@ npm install --save ng2-alfresco-viewer
|
|||||||
Add the following dependency to your index.html:
|
Add the following dependency to your index.html:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="node_modules/pdfjs-dist/build/pdf.js"></script>
|
<script src="node_modules/pdfjs-dist/build/pdf.js"></script>
|
||||||
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
||||||
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Style
|
#### Style
|
||||||
@@ -37,10 +37,10 @@ npm install --save material-design-icons material-design-lite
|
|||||||
Also make sure you include these dependencies in your .html page:
|
Also make sure you include these dependencies in your .html page:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Google Material Design Lite -->
|
<!-- Google Material Design Lite -->
|
||||||
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
||||||
<script src="node_modules/material-design-lite/material.min.js"></script>
|
<script src="node_modules/material-design-lite/material.min.js"></script>
|
||||||
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure your systemjs.config has the following configuration:
|
Make sure your systemjs.config has the following configuration:
|
||||||
|
Reference in New Issue
Block a user