Vue- horizontal-timeline: Straight timetable element for Vue.js #.\n\nVue-horizontal-timeline is actually an easy parallel timeline part made along with Vue.js (collaborate with Vue 2 & Vue 3).\nDemo.\nConnect with a functioning Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nVisit https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to set up.\nnpm.\n$ npm set up vue-horizontal-timeline-- spare.\nyarn (recommended).\n$ anecdote incorporate vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou may import in your main.js documents.\nimport Vue from \"vue\".\nbring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even locally in any type of part.\n\n' bring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not require the brackets over.\n\nexport nonpayment \nparts: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can easily import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' import Vue from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand afterwards import it in your 'nuxt.config.js' report.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nStandard utilization.\n\n\n\n\n\nProps.\nitems.\nType: Collection.\nNonpayment: null.\nSummary: Assortment of challenge be shown. Need to have at the very least a material home.\nitem-selected.\nKind: Things.\nDefault: {-String.Split- -}\nExplanation: Object that is set when it is clicked on. Keep in mind that clickable set need to be set to correct.\nitem-unique-key.\nType: Strand.\nNonpayment: \".\nExplanation: Key to specify a blue boundary to the memory card when it is clicked on (clickable.\nuphold have to be actually readied to true).\ntitle-attr.\nKind: Strand.\nNonpayment: 'headline'.\nSummary: Name of the home inside the things, that remain in the products range, to put the memory cards title.\ntitle-centered.\nStyle: Boolean.\nNonpayment: false.\nDescription: Streamlines the cards label.\ntitle-class.\nStyle: String.\nNonpayment: \".\nDescription: If you desire to prepare a personalized lesson to the memory cards title, set it listed below.\ntitle-substr.\nKind: Strand.\nNonpayment: 18.\nClassification: Variety of characters to show inside the cards headline. Above this, are going to put a '...' mask.\ncontent-attr.\nType: Strand.\nDefault: 'information'.\nSummary: Name of the building inside the items, that are in the items collection, to put the cards material.\ncontent-centered.\nType: Boolean.\nDefault: inaccurate.\nDescription: Centralizes all the memory cards material text.\ncontent-class.\nType: Strand.\nNonpayment: \".\nDescription: If you intend to prepare a custom-made training class to the cards information, specified it listed below.\ncontent-substr.\nKind: String.\nDefault: 250.\nDescription: Number of personalities to feature inside the cards content. Above this, will definitely put a '...' mask.\nmin-width.\nKind: String.\nNonpayment: '200px'.\nDescription: Min-width of the timetable.\nmin-height.\nKind: Strand.\nDefault: \".\nClassification: Min-height of the timetable.\ntimeline-padding.\nKind: String.\nNonpayment: \".\nClassification: Stuffing of the timetable.\ntimeline-background.\nStyle: Strand.\nNonpayment: '#E 9E9E9'.\nDescription: History different colors of the entire timetable.\nline-color.\nType: Chain.\nDefault: '
03A9F4'.Description: Different colors of free throw line inside the timetable.clickable.Style: Boolean.Default: correct.Description: Produces the card clickable that returns the item.You can also change the action colour and also the style of each item utilizing the stepCssClass as well as boxCssClass attributes inside each thing:.const example1 = title: "Headline instance 1",.information:." Lorem ipsum dolor rest amet, consectetur adipiscing elit. Ut ex 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.Take note: Contributions are very accepted, nonetheless is incredibly crucial to open up a brand-new concern using the concern design template before you start working on everything, so our experts may discuss it before palm.Fork the task as well as enter this regulates in your terminal.$ git duplicate https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For graphic screening, this venture includes storybook which you can easily operate through performing the upcoming command.$ yarn storybook.Jest.Just before producing the public relations, if you changed something that requires to be assessed, feel free to make the tests inside the tests/unit directory.To run the examinations, you can utilize the following command.$ yarn exam: unit.CSS.All the CSS is at src/assets/css/ style.scss.If you create any kind of changes in that documents, you will require to operate yarn construct to build it, because the part utilizes the minified variation at src/assets/css/ style.min.css.Commitlint.This task complies with the commitlint rules, with slight adjustments.You can easily commit using npm run dedicate to aid you with that said.There is actually a pre-push hook that jogs all the system assesses prior to you can easily drive it.If a mistake takes place, you may utilize the npm operate commit: retry demand that jogs the previous npm run devote that you actually loaded.
Articles You Can Be Interested In