Coder Social home page Coder Social logo

Comments (10)

neuronetio avatar neuronetio commented on September 28, 2024 1

try gantt-elastic v 0.10.17

from gantt-elastic.

neuronetio avatar neuronetio commented on September 28, 2024

You need to have vuex like in this example https://github.com/neuronetio/vue-gantt-elastic/blob/master/src/App.vue

from gantt-elastic.

mdieudonne avatar mdieudonne commented on September 28, 2024

Here is how I manage the upgrade from 0.9.6 to 0.10.15:

//Add
import Vuex from 'vuex';
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        tasks: tasks,
        options: options
    }
});

new Vue({
  el:'#app',
//...
    store,
    data() {
        return {
            tasks: tasks,
            options: options
        };
    },
    computed: {
        tasks() {
            return this.$store.state.tasks;
        },
        options() {
            return this.$store.state.options;
        }
    }
})

In const options = { }
value: task => dayjs(task.start).format("DD/MM/YYYY"),

  calendar: {
                hour: {
                    display: true
                }
            },

from gantt-elastic.

neuronetio avatar neuronetio commented on September 28, 2024

image

from gantt-elastic.

mdieudonne avatar mdieudonne commented on September 28, 2024

my feeback, with a php backend.
time() is in seconds - I needed to multiple by 1000
in my case : 'start' =>$lastItem->getTimestamp()*1000,

from gantt-elastic.

mdieudonne avatar mdieudonne commented on September 28, 2024

when I don't set locale property in option, gantt is in Polish
when I set to 'fr', it is in english..
Am I missing something? Thanks

from gantt-elastic.

neuronetio avatar neuronetio commented on September 28, 2024

you must add all translations by yourself https://github.com/neuronetio/gantt-elastic/wiki/Locale

from gantt-elastic.

mdieudonne avatar mdieudonne commented on September 28, 2024

yeah I copy the whole block locale property, which includes the translations, in the Options object,
it is not translated.
When I put the 'fr' block I got the english,
and by default it is in polish (learnt couple of words today ;)

image

from gantt-elastic.

neuronetio avatar neuronetio commented on September 28, 2024

hehe, ok I will check this

from gantt-elastic.

mdieudonne avatar mdieudonne commented on September 28, 2024

you must add all translations by yourself https://github.com/neuronetio/gantt-elastic/wiki/Locale

Just find out that it is needed to add a property :
weekdaysShort: 'Dim_Lun_Mar_Mer_Jeu_Ven_Sam'.split('_'),
for full French translation, as in the example

from gantt-elastic.

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.