Litepicker icon indicating copy to clipboard operation
Litepicker copied to clipboard

Comment on the getting started section of the project website - add HTML example like this.

Open mborus opened this issue 4 years ago • 1 comments

Hi,

may I suggest to add a simple HTML example to the getting started page at https://litepicker.com/#getting-started.

At the moment the page doesn't mention that that need to call the picker.show() to see it. This makes it hard for JavaScript noobs (like myself) to get started and to see a working example in their browser.

An example that would have helped me a lot would look like this: `

<!DOCTYPE html>
<html lang="en-US">
    <head>
        <script src="https://cdn.jsdelivr.net/npm/litepicker/dist/bundle.js">/script>
    </head>

    <body>
        <div id="litepicker"></div>
        <script>
            const picker = new Litepicker({
                element: document.getElementById('litepicker')
            });
            picker.show()
        </script>
    </body>
</html>

`

mborus avatar Jul 16 '21 13:07 mborus

I agree, thanks for commenting it here!

victor-carpio avatar Jul 21 '21 22:07 victor-carpio