Sleep

Vue- horizontal-timeline: Horizontal timeline element for Vue.js #.\n\nVue-horizontal-timeline is a simple horizontal timeline part created along with Vue.js (collaborate with Vue 2 &amp Vue 3).\nDemonstration.\nInteract with a working Trial on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nHow to set up.\nnpm.\n$ npm set up vue-horizontal-timeline-- spare.\nanecdote (advised).\n$ yarn include vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou may import in your main.js report.\nimport Vue coming from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even locally in any component.\n\n' bring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need the brackets above.\n\nexport nonpayment \nparts: \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 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\"].\nGeneral utilization.\n\n\n\n\n\nProps.\nitems.\nStyle: Array.\nNonpayment: null.\nSummary: Range of objects to be shown. Must have at the very least a web content residential property.\nitem-selected.\nKind: Item.\nDefault: {-String.Split- -}\nSummary: Item that is actually specified when it is actually clicked. Take note that clickable uphold have to be actually set to real.\nitem-unique-key.\nKind: Strand.\nNonpayment: \".\nSummary: Key to prepare a blue border to the card when it is clicked (clickable.\nuphold have to be readied to real).\ntitle-attr.\nStyle: Cord.\nDefault: 'label'.\nSummary: Call of the home inside the items, that reside in the things variety, to set the cards label.\ntitle-centered.\nKind: Boolean.\nNonpayment: incorrect.\nDescription: Streamlines the cards headline.\ntitle-class.\nType: Cord.\nDefault: \".\nClassification: If you want to specify a custom-made lesson to the cards headline, prepared it listed below.\ntitle-substr.\nKind: String.\nNonpayment: 18.\nDescription: Lot of figures to show inside the memory cards headline. Over this, will certainly put a '...' face mask.\ncontent-attr.\nStyle: String.\nDefault: 'web content'.\nSummary: Name of the home inside the objects, that reside in the items assortment, to place the memory cards content.\ncontent-centered.\nKind: Boolean.\nNonpayment: misleading.\nDescription: Rationalizes all the memory cards satisfied message.\ncontent-class.\nKind: Cord.\nDefault: \".\nDescription: If you intend to prepare a custom lesson to the cards content, established it right here.\ncontent-substr.\nType: Strand.\nNonpayment: 250.\nClassification: Lot of characters to feature inside the memory cards material. Above this, will definitely place a '...' cover-up.\nmin-width.\nKind: Strand.\nDefault: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nStyle: Strand.\nDefault: \".\nDescription: Min-height of the timeline.\ntimeline-padding.\nKind: String.\nNonpayment: \".\nClassification: Cushioning of the timetable.\ntimeline-background.\nStyle: Cord.\nDefault: '#E 9E9E9'.\nDescription: History colour of the entire timetable.\nline-color.\nKind: String.\nNonpayment: '

03A9F4'.Description: Different colors of free throw line inside the timetable.clickable.Style: Boolean.Default: accurate.Explanation: Helps make the memory card clickable that returns the things.You may likewise change the action different colors and the design of each product using the stepCssClass and boxCssClass features inside each item:.const example1 = title: "Title example 1",.web content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex lover dolor, malesuada luctus scelerisque ac, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Progression.Keep in mind: Contributions are actually incredibly welcomed, however is incredibly important to open a new issue using the concern template prior to you begin focusing on just about anything, so our team can easily cover it before palm.Fork the venture and enter this regulates 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 project consists of storybook which you can easily function through doing the upcoming command.$ yarn storybook.Jest.Prior to making the public relations, if you transformed something that needs to have to be examined, feel free to help make the tests inside the tests/unit folder.To operate the tests, you can easily make use of the upcoming order.$ anecdote examination: system.CSS.All the CSS is at src/assets/css/ style.scss.If you produce any sort of improvements because data, you will definitely need to run yarn develop to develop it, considering that the part uses the minified version at src/assets/css/ style.min.css.Commitlint.This venture adheres to the commitlint guidelines, along with small modifications.You can devote utilizing npm operate commit to help you keeping that.There's a pre-push hook that runs all the unit evaluates prior to you may press it.If a mistake takes place, you can easily use the npm run dedicate: retry command that runs the previous npm operate devote that you actually packed.

Articles You Can Be Interested In