Sleep

Vue- horizontal-timeline: Parallel timeline element for Vue.js #.\n\nVue-horizontal-timeline is actually a simple horizontal timetable component made along with Vue.js (partner with Vue 2 &amp Vue 3).\nDemo.\nEngage along with an operating Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to install.\nnpm.\n$ npm mount vue-horizontal-timeline-- save.\nyarn (recommended).\n$ anecdote add vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou can easily import in your main.js documents.\nbring in Vue coming from \"vue\".\nbring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even locally in any part.\n\n' import VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you don't need the braces above.\n\nexport default \ncomponents: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can easily 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 then import it in your 'nuxt.config.js' file.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nBasic usage.\n\n\n\n\n\nProps.\nitems.\nStyle: Selection.\nDefault: null.\nSummary: Variety of contest be shown. Have to have at minimum an information residential or commercial property.\nitem-selected.\nKind: Things.\nNonpayment: {-String.Split- -}\nSummary: Object that is established when it is actually clicked on. Keep in mind that clickable uphold need to be actually set to correct.\nitem-unique-key.\nStyle: String.\nNonpayment: \".\nSummary: Trick to establish a blue perimeter to the card when it is clicked (clickable.\nuphold have to be set to true).\ntitle-attr.\nKind: Cord.\nDefault: 'label'.\nSummary: Call of the residential property inside the items, that remain in the things range, to set the memory cards label.\ntitle-centered.\nType: Boolean.\nNonpayment: incorrect.\nClassification: Streamlines the cards title.\ntitle-class.\nKind: Cord.\nNonpayment: \".\nClassification: If you wish to establish a custom training class to the cards title, set it here.\ntitle-substr.\nType: Cord.\nNonpayment: 18.\nDescription: Lot of characters to present inside the memory cards headline. Over this, will definitely establish a '...' mask.\ncontent-attr.\nStyle: String.\nNonpayment: 'material'.\nDescription: Call of the residential or commercial property inside the things, that remain in the things assortment, to establish the memory cards information.\ncontent-centered.\nType: Boolean.\nDefault: incorrect.\nDescription: Streamlines all the memory cards satisfied text.\ncontent-class.\nStyle: String.\nDefault: \".\nDescription: If you want to prepare a custom course to the cards content, specified it right here.\ncontent-substr.\nType: Cord.\nNonpayment: 250.\nDescription: Lot of figures to present inside the memory cards material. Over this, are going to put a '...' hide.\nmin-width.\nType: String.\nDefault: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nStyle: String.\nDefault: \".\nClassification: Min-height of the timeline.\ntimeline-padding.\nKind: String.\nNonpayment: \".\nClassification: Cushioning of the timeline.\ntimeline-background.\nType: String.\nDefault: '#E 9E9E9'.\nDescription: Background different colors of the entire timeline.\nline-color.\nStyle: String.\nDefault: '

03A9F4'.Classification: Shade of free throw line inside the timeline.clickable.Type: Boolean.Default: correct.Description: Produces the card clickable that returns the item.You may likewise modify the action different colors and the type of each product making use of the stepCssClass and also boxCssClass attributes inside each item:.const example1 = title: "Title example 1",.web content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex-boyfriend 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.Note: Payments are extremely accepted, having said that is quite necessary to open up a brand new problem making use of the problem template before you start focusing on anything, so our experts can review it before palm.Fork the project and enter this influences in your terminal.$ git duplicate https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For aesthetic testing, this venture includes storybook which you can run by doing the next command.$ yarn storybook.Jest.Just before creating the public relations, if you transformed something that needs to be examined, satisfy make the tests inside the tests/unit file.To manage the examinations, you can easily use the upcoming demand.$ yarn test: system.CSS.All the CSS goes to src/assets/css/ style.scss.If you make any improvements during that data, you will need to have to manage anecdote develop to develop it, given that the part makes use of the minified model at src/assets/css/ style.min.css.Commitlint.This venture complies with the commitlint rules, with small modifications.You can devote making use of npm run dedicate to assist you with that said.There is actually a pre-push hook that rushes all the system tests just before you can easily drive it.If a mistake takes place, you can utilize the npm operate devote: retry order that rushes the previous npm run commit that you actually filled.

Articles You Can Be Interested In