Vue- horizontal-timeline: Parallel timeline part for Vue.js #.\n\nVue-horizontal-timeline is a straightforward straight timeline part brought in with Vue.js (deal with Vue 2 & Vue 3).\nDemo.\nEngage along with a working Trial on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nExactly how to install.\nnpm.\n$ npm put up vue-horizontal-timeline-- conserve.\nyarn (encouraged).\n$ anecdote include vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou can import in your main.js documents.\nimport Vue coming from \"vue\".\nbring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr locally in any sort of element.\n\n' import VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need to have the braces over.\n\nexport nonpayment \nelements: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' bring in Vue coming from \"vue\".\nbring in 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\"].\nSimple use.\n\n\n\n\n\nProps.\nitems.\nType: Collection.\nNonpayment: null.\nSummary: Variety of objects to be actually presented. Have to have at the very least an information residential property.\nitem-selected.\nKind: Object.\nNonpayment: {-String.Split- -}\nSummary: Things that is actually prepared when it is actually clicked on. Take note that clickable set have to be readied to real.\nitem-unique-key.\nKind: Cord.\nNonpayment: \".\nSummary: Trick to establish a blue perimeter to the memory card when it is clicked (clickable.\nset should be actually set to real).\ntitle-attr.\nType: Cord.\nDefault: 'label'.\nDescription: Name of the residential or commercial property inside the objects, that reside in the products variety, to set the cards title.\ntitle-centered.\nStyle: Boolean.\nDefault: false.\nDescription: Rationalizes the memory cards label.\ntitle-class.\nKind: Cord.\nNonpayment: \".\nClassification: If you wish to specify a custom training class to the cards title, prepared it listed here.\ntitle-substr.\nStyle: Strand.\nDefault: 18.\nDescription: Amount of characters to display inside the cards headline. Over this, will definitely place a '...' mask.\ncontent-attr.\nType: Strand.\nDefault: 'web content'.\nDescription: Call of the residential property inside the things, that are in the items assortment, to place the memory cards web content.\ncontent-centered.\nStyle: Boolean.\nNonpayment: inaccurate.\nDescription: Rationalizes all the memory cards content text.\ncontent-class.\nKind: String.\nNonpayment: \".\nClassification: If you want to prepare a customized class to the memory cards content, prepared it below.\ncontent-substr.\nStyle: String.\nNonpayment: 250.\nDescription: Amount of personalities to present inside the cards material. Over this, will certainly set a '...' mask.\nmin-width.\nType: String.\nNonpayment: '200px'.\nDescription: Min-width of the timeline.\nmin-height.\nType: Cord.\nNonpayment: \".\nClassification: Min-height of the timetable.\ntimeline-padding.\nStyle: Cord.\nNonpayment: \".\nDescription: Stuffing of the timeline.\ntimeline-background.\nStyle: String.\nDefault: '#E 9E9E9'.\nClassification: History different colors of the whole timeline.\nline-color.\nKind: Chain.\nDefault: '
03A9F4'.Description: Shade of the line inside the timeline.clickable.Type: Boolean.Nonpayment: correct.Description: Creates the memory card clickable that returns the object.You can easily likewise alter the measure colour as well as the style of each thing making use of the stepCssClass as well as boxCssClass features inside each product:.const example1 = title: "Label instance 1",.information:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex lover dolor, malesuada luctus scelerisque a/c, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Advancement.Note: Additions are actually very welcomed, nonetheless is extremely essential to open a new problem making use of the concern theme before you start servicing anything, so our team can explain it before hand.Fork the job and also enter this influences in your terminal.$ git clone https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For aesthetic screening, this task consists of storybook which you may function through performing the next order.$ yarn storybook.Banter.Prior to creating the PR, if you modified one thing that needs to be assessed, feel free to make the examinations inside the tests/unit file.To manage the tests, you can use the next order.$ anecdote examination: device.CSS.All the CSS is at src/assets/css/ style.scss.If you create any type of modifications during that documents, you are going to need to have to operate anecdote create to build it, because the component uses the minified model at src/assets/css/ style.min.css.Commitlint.This project follows the commitlint standards, with minor changes.You may commit making use of npm run dedicate to assist you with that.There is actually a pre-push hook that dashes all the unit tests just before you may press it.If a mistake occurs, you may utilize the npm operate devote: retry order that rushes the previous npm run dedicate that you currently loaded.
Articles You Can Be Interested In