Sleep

Vue- horizontal-timeline: Horizontal timeline component for Vue.js #.\n\nVue-horizontal-timeline is an easy straight timeline part created with Vue.js (team up with Vue 2 &amp Vue 3).\nDemo.\nConnect with a working Demonstration on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nVisit https:\/\/vue-horizontal-timeline.netlify.com.\nExactly how to install.\nnpm.\n$ npm install vue-horizontal-timeline-- spare.\nyarn (suggested).\n$ yarn incorporate vue-horizontal-timeline.\nQuick start.\nVue.js.\nYou may import in your main.js file.\nbring in Vue coming from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr in your area in any element.\n\n' import VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need to have the braces above.\n\nexport default \nparts: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou may import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' bring in Vue coming 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' documents.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nFundamental utilization.\n\n\n\n\n\nProps.\nproducts.\nKind: Collection.\nDefault: null.\nDescription: Selection of contest be actually presented. Need to have at the very least an information building.\nitem-selected.\nKind: Object.\nNonpayment: {-String.Split- -}\nDescription: Object that is actually specified when it is clicked on. Take note that clickable prop must be actually set to accurate.\nitem-unique-key.\nKind: Strand.\nNonpayment: \".\nExplanation: Secret to establish a blue perimeter to the memory card when it is clicked on (clickable.\nuphold have to be actually set to real).\ntitle-attr.\nKind: Strand.\nNonpayment: 'headline'.\nExplanation: Name of the property inside the objects, that are in the items assortment, to set the cards label.\ntitle-centered.\nStyle: Boolean.\nNonpayment: untrue.\nDescription: Rationalizes the memory cards label.\ntitle-class.\nType: String.\nDefault: \".\nDescription: If you want to set a custom class to the memory cards headline, specified it listed here.\ntitle-substr.\nType: String.\nNonpayment: 18.\nDescription: Variety of characters to show inside the cards title. Above this, will definitely put a '...' cover-up.\ncontent-attr.\nKind: Cord.\nDefault: 'web content'.\nDescription: Call of the home inside the objects, that are in the items collection, to set the memory cards material.\ncontent-centered.\nStyle: Boolean.\nNonpayment: untrue.\nDescription: Centralizes all the memory cards content text message.\ncontent-class.\nKind: Cord.\nDefault: \".\nClassification: If you would like to establish a custom course to the memory cards material, established it here.\ncontent-substr.\nKind: Cord.\nNonpayment: 250.\nDescription: Variety of figures to display inside the cards material. Over this, will certainly place a '...' face mask.\nmin-width.\nKind: String.\nNonpayment: '200px'.\nDescription: Min-width of the timetable.\nmin-height.\nType: Cord.\nDefault: \".\nDescription: Min-height of the timeline.\ntimeline-padding.\nStyle: String.\nDefault: \".\nDescription: Stuffing of the timetable.\ntimeline-background.\nStyle: String.\nDefault: '#E 9E9E9'.\nClassification: Background different colors of the entire timeline.\nline-color.\nType: String.\nDefault: '

03A9F4'.Classification: Color of the line inside the timeline.clickable.Type: Boolean.Default: true.Explanation: Creates the memory card clickable that returns the item.You may also alter the step shade as well as the type of each item using the stepCssClass and boxCssClass attributes inside each product:.const example1 = title: "Label instance 1",.information:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex 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'..Progression.Note: Additions are really invited, nevertheless is actually quite crucial to open a brand-new issue utilizing the issue template before you begin dealing with anything, so our experts can explain it just before palm.Fork the project as well as enter this controls in your terminal.$ git clone https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For visual testing, this task contains storybook which you can easily run through performing the following command.$ anecdote storybook.Banter.Just before creating the public relations, if you changed one thing that requires to become evaluated, feel free to help make the exams inside the tests/unit directory.To run the examinations, you can make use of the following command.$ anecdote test: unit.CSS.All the CSS is at src/assets/css/ style.scss.If you help make any type of adjustments during that report, you are going to need to run anecdote create to build it, due to the fact that the component uses the minified model at src/assets/css/ style.min.css.Commitlint.This project follows the commitlint tips, along with small changes.You can dedicate making use of npm operate devote to aid you with that said.There is actually a pre-push hook that runs all the unit tests before you may press it.If an error happens, you can easily utilize the npm operate devote: retry command that runs the previous npm operate commit that you already filled up.

Articles You Can Be Interested In