Vue- horizontal-timeline: Horizontal timeline part for Vue.js #.\n\nVue-horizontal-timeline is actually a straightforward straight timetable part brought in with Vue.js (team up with Vue 2 & Vue 3).\nDemo.\nConnect along with a working Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nMost likely to https:\/\/vue-horizontal-timeline.netlify.com.\nExactly how to set up.\nnpm.\n$ npm mount vue-horizontal-timeline-- conserve.\nanecdote (advised).\n$ yarn add vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou can import in your main.js data.\nimport Vue from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even regionally in any kind of component.\n\n' bring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need to have the brackets above.\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 from \"vue\".\nbring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand then import it in your 'nuxt.config.js' file.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nFundamental utilization.\n\n\n\n\n\nProps.\nitems.\nKind: Variety.\nDefault: null.\nExplanation: Collection of contest be shown. Must have at least a material residential property.\nitem-selected.\nStyle: Object.\nDefault: {-String.Split- -}\nExplanation: Object that is specified when it is clicked on. Note that clickable set need to be set to true.\nitem-unique-key.\nKind: Cord.\nNonpayment: \".\nDescription: Key to establish a blue boundary to the memory card when it is clicked on (clickable.\nuphold need to be actually readied to real).\ntitle-attr.\nStyle: String.\nDefault: 'headline'.\nExplanation: Name of the building inside the objects, that reside in the products selection, to establish the cards label.\ntitle-centered.\nStyle: Boolean.\nNonpayment: incorrect.\nClassification: Centralizes the memory cards title.\ntitle-class.\nKind: Strand.\nDefault: \".\nDescription: If you wish to specify a custom-made training class to the cards label, specified it below.\ntitle-substr.\nType: String.\nNonpayment: 18.\nClassification: Variety of figures to present inside the cards headline. Above this, will certainly set a '...' hide.\ncontent-attr.\nKind: Cord.\nDefault: 'material'.\nDescription: Call of the home inside the things, that reside in the items variety, to place the cards material.\ncontent-centered.\nType: Boolean.\nNonpayment: inaccurate.\nDescription: Systematizes all the memory cards satisfied text.\ncontent-class.\nKind: Strand.\nNonpayment: \".\nClassification: If you intend to set a custom course to the memory cards information, prepared it right here.\ncontent-substr.\nKind: Cord.\nDefault: 250.\nDescription: Lot of figures to display inside the cards information. Over this, will put a '...' cover-up.\nmin-width.\nType: String.\nDefault: '200px'.\nDescription: Min-width of the timetable.\nmin-height.\nKind: Strand.\nNonpayment: \".\nDescription: Min-height of the timetable.\ntimeline-padding.\nType: String.\nDefault: \".\nClassification: Stuffing of the timeline.\ntimeline-background.\nType: Cord.\nDefault: '#E 9E9E9'.\nDescription: History different colors of the entire timetable.\nline-color.\nType: String.\nNonpayment: '
03A9F4'.Description: Colour of the line inside the timeline.clickable.Style: Boolean.Default: accurate.Explanation: Produces the memory card clickable that returns the item.You can also alter the measure different colors as well as the type of each item utilizing the stepCssClass and also boxCssClass features inside each product:.const example1 = headline: "Headline example 1",.information:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex-boyfriend dolor, malesuada luctus scelerisque air conditioning, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Progression.Note: Payments are actually extremely welcomed, however is actually incredibly crucial to open up a brand new problem using the issue layout just before you start dealing with anything, so our experts may explain it just before hand.Fork the venture and enter this influences in your terminal.$ git clone https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ yarn.Storybook.For aesthetic testing, this task contains storybook which you can easily run by carrying out the upcoming order.$ yarn storybook.Jest.Just before producing the public relations, if you transformed one thing that needs to be checked, please produce the exams inside the tests/unit directory.To run the exams, you can utilize the following demand.$ anecdote examination: unit.CSS.All the CSS is at src/assets/css/ style.scss.If you help make any improvements in that file, you will definitely require to operate anecdote construct to construct it, given that the part uses the minified model at src/assets/css/ style.min.css.Commitlint.This project adheres to the commitlint tips, with small improvements.You can easily commit making use of npm run dedicate to aid you keeping that.There is actually a pre-push hook that jogs all the system checks just before you can press it.If an error takes place, you can easily make use of the npm run devote: retry order that dashes the previous npm operate devote that you already filled up.
Articles You Can Be Interested In