@patternslib/pat-doclock

    3.0.0 • Public • Published

    pat-doclock

    A Patternslib pattern.

    For example:

    <form class="pat-doclock"
          data-pat-doclock="url: mock/toggle-lock.html"
    >
        ...
    </form>

    Development

    For standalone development run (installation and starting a server):

        > make all

    To clean up local directory (after running make all) run:

        > make clean

    Purpose

    This pattern is Quaive specific and is meant to lock a document in order to prevent concurrent edits.

    Every time a user starts typing or pastes content in a form that has the class pat-doclock, an ajax call to the url specified using the data-pat-doclock option is performed. When the form is replaced or the user leaves the page, the same url is called to unlock the document.

    Keywords

    Install

    npm i @patternslib/pat-doclock

    DownloadsWeekly Downloads

    59

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    19.7 kB

    Total Files

    22

    Last publish

    Collaborators

    • goibhniu
    • askesemann
    • pilz
    • jcbrand
    • fulv
    • thet
    • alessandro.pisa