Skip to content

pilif0/dash_leader_checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dash Leader Checkbox

Dash Leader Checkbox is a Plotly Dash component library that adds a single component: a checkbox that can control the value of other checkboxes. It essentially implements a constraint where the leader's value always implies the value of followers. Those followers are specified as a list of IDs.

Contributing

Prepare

  1. Install npm packages:
    $ npm install
    
  2. Create a Python virtual environment (using its own virtualenv or a package manager) and activate.
  3. Install python packages required to build components:
    $ pip install -r requirements.txt
    
  4. Install the python packages for testing (optional):
    $ pip install -r tests/requirements.txt
    

Develop

The component itself is in src/lib/components/LeaderCheckbox.react.js with a simple usage example in usage.py. To test the code in a Python environment:

  1. Build the code:
    $ npm run build
    
  2. Run the usage.py Dash app:
    $ python usage.py
    

(Tests are currently not implemented.)

Package

  1. Build the code:
    $ npm run build
    
  2. Create a Python distribution:
    $ python setup.py sdist bdist_wheel
    
    This will create source and wheel distribution in the generated the dist/ folder. See PyPA for more information.
  3. Copy the targball into a new environment and install it locally:
    $ pip install dash_leader_checkbox-0.0.1.tar.gz
    

These three steps can also be run together using rebuild_and_install.sh.

(The component is currently not being distributed on PyPI and NPM.)

About

Checkbox component for Plotly Dash that controls other checkboxes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors