Neurosis Prevention Mechanism

    vue-triple-dots
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.4 • Public • Published

    Vue Triple Dots

    Vue js component for showing html element with dot dot dot (...)

    Latest Version on NPM Software License npm npm

    Demo

    Setup

    NPM

    npm install --save vue-triple-dots

    Yarn

    yarn add vue-triple-dots

    Add dependencies to your main.js:

    import Vue           from 'vue'
    import VueTripleDots from 'vue-triple-dots'
    
    /*
    or for SSR:
    import VueTripleDots from 'vue-triple-dots/dist/ssr.js'
    */
    
    Vue.use(VueTripleDots)

    Note that all props are optional.

    Name Type Default Description
    tag String 'div' The element will render.
    ellipsis String '...' 3 dots will show when text has more.
    callback Function undefined
    truncate string undefined
    tolerance number undefined
    keep string null
    watch string undefined
    height number undefined
    readLessKey string readLess
    readMoreKey string readMore

    FAQ

    Check closed issues with FAQ label to get answers for most asked questions.

    Development

    To contribute to the library:

    # build main library
    npm install
    npm run build

    Install

    npm i vue-triple-dots

    DownloadsWeekly Downloads

    11

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    110 kB

    Total Files

    14

    Last publish

    Collaborators

    • chantouchsek