Giter Site home page Giter Site logo

Comments (4)

BSd3v avatar BSd3v commented on June 18, 2024 1

Hello @albavilanova,

To build a local package, you need need to act like you are contributing as there is no dist package in the repo. To do so, you will need a need to have node installed.

Then run:

  • npm i <- installs packages
  • npm run build <- which will build the python library as well as the js
  • pip install -e . <- will locally install the packages for you to test

Also, make sure that you run a venv as to not mess up your other packages.

from dash-mantine-components.

BSd3v avatar BSd3v commented on June 18, 2024

Hello @albavilanova,

To use an input with DatePicker, you need to use DateInput.

https://www.dash-mantine-components.com/components/dateinput

from dash-mantine-components.

albavilanova avatar albavilanova commented on June 18, 2024

Hi @BSd3v,

I've managed to get it to work using DateInput, thank you for the suggestion. The same errors still appear using the new version (#203 and the free input not accepting the values in the current locale).

I want to test the master branch, but I tried installing the library in my environment and when I open my dashboard I keep encountering the imports error. I am doing:

git clone https://github.com/snehilvj/dash-mantine-components.git
python setup.py sdist
pip install dist/dash_mantine_components-0.14.3.tar.gz

My element looks like:

dmc.DatesProvider(
    dmc.DateInput(
        id=f"{ts_type}-date-picker",
        minDate=dt.strptime(start_date, "%Y%m%d"),
        maxDate=dt.strptime(end_date, "%Y%m%d"),
        value=selected_date,
        valueFormat="DD MMM YYYY",
        placeholder="DD MON YYYY",
        clearable=False,
    ),
    settings={"locale": "ca"},
)

Best,

Alba

from dash-mantine-components.

albavilanova avatar albavilanova commented on June 18, 2024

I am closing this since I can now test it, I will open a new issue to report on the free input error.

from dash-mantine-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.