dash-defer-js-import-0.0.2
توضیحات
Deferring loading of JS files until after React loads
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dash-defer-js-import-0.0.2 |
| نام | dash-defer-js-import |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | zouhair zouhair.mahboubi@gmail.com |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dash-defer-js-import/ |
| مجوز | MIT |
# Dash Defer JS Import
Dash Defer JS Import is a Dash component library.
Its purpose is to defer loading JS scripts until after the Dash React elements have loaded.
# Installation
The package has been released to pypi and npm.
Easy thing is to install using pip:
```
pip install dash_defer_js_import
```
To install from source, clone the repo and
```
npm install
npm run build:all
python setup.py sdist
pip install dist/dash_defer_js_import-0.0.1.tar.gz
```
Note: his assumes you have the requirements already installed, if not, see requirements.txt
Might want to use venv to not mess up your own repo ...)
# Usage:
```
import dash_defer_js_import as dji
# Dash server initi and layout setup
# ...
app.layout = html.Article(dji.Import(src="./path/to/script.js"))
```
# Credits
This component is based on the [grasia-dash-component](https://github.com/Grasia/grasia-dash-components)
It was initialized using cookiecutter thanks to the [https://github.com/plotly/dash-component-boilerplate.git](das-component-boilerplate) cookiecutter .
نحوه نصب
نصب پکیج whl dash-defer-js-import-0.0.2:
pip install dash-defer-js-import-0.0.2.whl
نصب پکیج tar.gz dash-defer-js-import-0.0.2:
pip install dash-defer-js-import-0.0.2.tar.gz