Skip to content

Commit

Permalink
react as Xstatic doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuty committed Apr 3, 2015
1 parent ae699ab commit 198f43e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/source/main/reactjs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ For example our index ``contrib/models/<my_class>/index/`` and append ``/react``
Usage
-----

.. code-block:: bash
pip install xstatic-react
Add to ``settings.py``

.. code-block:: python
import xstatic.pkg.react
STATICFILES_DIRS = [
('lib', xstatic.main.XStatic(xstatic.pkg.react).base_dir),
]
* ``/contrib/models/project/react`` ..

In the Panel

.. code-block:: python
from horizon_contrib.panel import ModelPanel
Expand All @@ -44,7 +63,7 @@ Usage
RedmineDashboard.register(ProjectPanel)
Custom table
As table

.. code-block:: python
Expand Down

0 comments on commit 198f43e

Please sign in to comment.