@seges/angular-intervalpicker

Intervalpicker for angular views

Usage no npm install needed!

<script type="module">
  import segesAngularIntervalpicker from 'https://cdn.skypack.dev/@seges/angular-intervalpicker';
</script>

README

Intervalpicker for angular views

Usage

Add the component to a view and supply the required attributes.

Attributes

can-be-empty: boolean - if set to true it allows for no date to be set. format: string - the format to display dates in. See moment documentation for more information on formats. dates: PublicDates - the dates to use for the intervalpicker. preset: string - the preset to use as default for the intervalpicker. Can be 'day', 'week' and 'month'. on-ok: Function - callback for when accepting dates in the itnervalpicker. on-cancel: Function - callback for when canceling changes in the intervalpicker.