Sleep

Vue- horizontal-timeline: Parallel timetable component for Vue.js #.\n\nVue-horizontal-timeline is a simple horizontal timetable part created with Vue.js (works with Vue 2 &amp Vue 3).\nDemonstration.\nEngage with an operating Trial on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nMost likely to https:\/\/vue-horizontal-timeline.netlify.com.\nHow to put in.\nnpm.\n$ npm mount vue-horizontal-timeline-- save.\nyarn (highly recommended).\n$ anecdote include vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou can import in your main.js documents.\nimport Vue from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even in your area in any type of element.\n\n' import VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need to have the braces above.\n\nexport nonpayment \nelements: \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 coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand then import it in your 'nuxt.config.js' report.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nBasic consumption.\n\n\n\n\n\nProps.\nitems.\nKind: Collection.\nNonpayment: null.\nExplanation: Assortment of contest be displayed. Need to contend the very least a web content residential property.\nitem-selected.\nStyle: Item.\nNonpayment: {-String.Split- -}\nDescription: Things that is actually set when it is actually clicked on. Note that clickable set should be actually set to correct.\nitem-unique-key.\nStyle: Cord.\nNonpayment: \".\nDescription: Key to specify a blue perimeter to the memory card when it is clicked (clickable.\nuphold need to be readied to true).\ntitle-attr.\nStyle: Cord.\nNonpayment: 'title'.\nExplanation: Call of the residential property inside the items, that are in the items selection, to place the memory cards headline.\ntitle-centered.\nStyle: Boolean.\nDefault: untrue.\nDescription: Streamlines the memory cards headline.\ntitle-class.\nKind: String.\nDefault: \".\nDescription: If you desire to establish a customized lesson to the memory cards headline, prepared it listed here.\ntitle-substr.\nType: String.\nDefault: 18.\nDescription: Variety of personalities to present inside the memory cards title. Over this, are going to establish a '...' disguise.\ncontent-attr.\nStyle: Cord.\nDefault: 'information'.\nDescription: Name of the home inside the items, that remain in the items selection, to establish the memory cards web content.\ncontent-centered.\nType: Boolean.\nDefault: misleading.\nDescription: Centralizes all the memory cards content text.\ncontent-class.\nType: String.\nNonpayment: \".\nClassification: If you wish to establish a personalized class to the memory cards information, established it right here.\ncontent-substr.\nStyle: String.\nNonpayment: 250.\nClassification: Number of figures to present inside the memory cards material. Over this, will definitely put a '...' hide.\nmin-width.\nKind: Strand.\nNonpayment: '200px'.\nDescription: Min-width of the timeline.\nmin-height.\nKind: Strand.\nDefault: \".\nClassification: Min-height of the timetable.\ntimeline-padding.\nStyle: Cord.\nNonpayment: \".\nClassification: Stuffing of the timetable.\ntimeline-background.\nType: String.\nDefault: '#E 9E9E9'.\nClassification: History different colors of the entire timetable.\nline-color.\nStyle: Chain.\nNonpayment: '

03A9F4'.Description: Shade of the line inside the timeline.clickable.Style: Boolean.Default: correct.Explanation: Helps make the memory card clickable that returns the object.You can additionally transform the measure shade and also the style of each item making use of the stepCssClass as well as boxCssClass features inside each thing:.const example1 = headline: "Label instance 1",.material:." Lorem ipsum dolor rest amet, consectetur adipiscing elit. Ut ex lover 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: Contributions are very accepted, nevertheless is incredibly vital to open up a brand new problem utilizing the problem template just before you start servicing anything, so our company can review it just before palm.Fork the venture and enter this regulates in your terminal.$ git duplicate https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ yarn.Storybook.For visual screening, this project includes storybook which you can easily function through doing the next order.$ anecdote storybook.Jest.Before making the public relations, if you transformed something that needs to become examined, feel free to make the exams inside the tests/unit folder.To run the examinations, you can easily use the next demand.$ yarn examination: unit.CSS.All the CSS is at src/assets/css/ style.scss.If you make any modifications during that documents, you will certainly need to run anecdote construct to build it, due to the fact that the part uses the minified model at src/assets/css/ style.min.css.Commitlint.This project adheres to the commitlint rules, along with minor modifications.You may dedicate utilizing npm run devote to help you with that.There is actually a pre-push hook that runs all the device assesses just before you can easily drive it.If an error develops, you can use the npm operate commit: retry demand that dashes the previous npm operate devote that you already filled up.

Articles You Can Be Interested In