Skip to content

Commit

Permalink
docs(components): added datepicker to sandbox
Browse files Browse the repository at this point in the history
feature/150167-datepicker
  • Loading branch information
liviaalmeida committed Nov 6, 2019
1 parent ab82837 commit 689c2a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sandbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
</div>
<div class="bp-navbar__right"></div>
</div>

<h1>Datepicker</h1>
<div id="datepicker"></div>

<h1>TOASTS</h1>
<div id="toasts"></div>

Expand Down
6 changes: 6 additions & 0 deletions sandbox/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { BlipTabs } from '../src/components/blipTabs'
// import { BlipModal } from '../src/components/blipModal'
import { BlipToasts } from '../src/components/blipToasts'
import { BlipCarousel } from '../src/components/blipCarousel'
import { BlipDatepicker } from '../src/components/blipDatepicker'

const amazingSelect = document.getElementById('select')
const selectInstance = new BlipSelect({
Expand Down Expand Up @@ -165,3 +166,8 @@ setTimeout(() => {
// const carouselItems = document.querySelectorAll('.bp-carousel-item')
const carousel = new BlipCarousel('carousel', 300)
carousel.render()

const picker = new BlipDatepicker(new Date(), {hasTime: true})
const pickerParent = document.getElementById('datepicker')

pickerParent.appendChild(picker.render())

0 comments on commit 689c2a1

Please sign in to comment.