Vue- horizontal-timeline: Straight timeline part for Vue.js #.\n\nVue-horizontal-timeline is actually an easy parallel timeline element brought in with Vue.js (works with Vue 2 & Vue 3).\nDemo.\nConnect with an operating Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nMost likely to https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to put in.\nnpm.\n$ npm mount vue-horizontal-timeline-- save.\nyarn (encouraged).\n$ yarn incorporate vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou may import in your main.js data.\nimport Vue from \"vue\".\nbring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even locally in any kind of part.\n\n' bring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need the braces over.\n\nexport default \nparts: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' import Vue from \"vue\".\nimport VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand after that import it in your 'nuxt.config.js' data.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nFundamental use.\n\n\n\n\n\nProps.\nthings.\nKind: Variety.\nNonpayment: null.\nExplanation: Collection of challenge be actually shown. Should contend least a material home.\nitem-selected.\nStyle: Object.\nNonpayment: {-String.Split- -}\nExplanation: Item that is specified when it is clicked. Note that clickable uphold have to be actually readied to accurate.\nitem-unique-key.\nType: Cord.\nDefault: \".\nDescription: Secret to establish a blue border to the memory card when it is clicked (clickable.\nset should be actually set to correct).\ntitle-attr.\nKind: Strand.\nDefault: 'headline'.\nSummary: Name of the home inside the items, that remain in the things range, to establish the memory cards title.\ntitle-centered.\nStyle: Boolean.\nNonpayment: false.\nClassification: Rationalizes the cards headline.\ntitle-class.\nKind: Strand.\nNonpayment: \".\nClassification: If you want to set a custom-made class to the memory cards headline, specified it listed below.\ntitle-substr.\nType: String.\nNonpayment: 18.\nDescription: Amount of characters to display inside the cards title. Over this, will place a '...' disguise.\ncontent-attr.\nType: Strand.\nDefault: 'content'.\nDescription: Name of the residential property inside the things, that reside in the things collection, to put the cards information.\ncontent-centered.\nStyle: Boolean.\nNonpayment: inaccurate.\nDescription: Rationalizes all the cards material message.\ncontent-class.\nKind: Cord.\nNonpayment: \".\nClassification: If you wish to establish a customized training class to the memory cards information, prepared it listed below.\ncontent-substr.\nStyle: Strand.\nDefault: 250.\nClassification: Number of figures to feature inside the memory cards content. Above this, will definitely set a '...' face mask.\nmin-width.\nStyle: Cord.\nDefault: '200px'.\nClassification: Min-width of the timetable.\nmin-height.\nType: Strand.\nDefault: \".\nDescription: Min-height of the timetable.\ntimeline-padding.\nStyle: String.\nDefault: \".\nClassification: Padding of the timeline.\ntimeline-background.\nStyle: Cord.\nNonpayment: '#E 9E9E9'.\nClassification: Background colour of the whole timeline.\nline-color.\nStyle: String.\nNonpayment: '
03A9F4'.Description: Color of the line inside the timetable.clickable.Type: Boolean.Default: true.Description: Helps make the memory card clickable that returns the item.You can easily additionally transform the step different colors and also the style of each thing making use of the stepCssClass as well as boxCssClass characteristics inside each thing:.const example1 = title: "Headline example 1",.information:." Lorem ipsum dolor rest amet, consectetur adipiscing elit. Ut ex lover dolor, malesuada luctus scelerisque hvac, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Growth.Keep in mind: Contributions are actually really welcomed, nevertheless is actually quite crucial to open a brand new concern making use of the issue layout prior to you start servicing anything, so our company can easily discuss it just before palm.Fork the task and also enter this influences in your terminal.$ git duplicate https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For visual testing, this job consists of storybook which you may function by carrying out the upcoming demand.$ yarn storybook.Banter.Before making the PR, if you altered something that needs to become checked, please create the exams inside the tests/unit file.To operate the exams, you can use the next demand.$ yarn examination: system.CSS.All the CSS goes to src/assets/css/ style.scss.If you make any sort of improvements during that data, you will need to operate yarn develop to create it, given that the component makes use of the minified variation at src/assets/css/ style.min.css.Commitlint.This venture observes the commitlint tips, along with minor modifications.You can easily commit utilizing npm operate devote to assist you with that said.There's a pre-push hook that rushes all the system checks just before you can drive it.If an inaccuracy happens, you can use the npm run commit: retry command that rushes the previous npm run dedicate that you actually filled up.
Articles You Can Be Interested In