2.0.1 • Published 4 years ago

oe-date-range v2.0.1

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

\<oe-date-range>

<oe-date-range> is a component for displaying date in range formate. It is a Polymer component user the oe-datepicker as parent element from oe-date.

The startDate and endDate is set by picking the date from <oe-date-range-picker> element which used <oe-datepicker> as parent element.

The date, format and label can be set using start-date,end-date and format,label attribute in the <oe-date-range></oe-date-range>

Mixins are provided to adjust the width of oe-input element and provide paddings for icons. --range-date-input --event-icon-input --oe-input-underline

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Viewing Your Element

The below command generates a JSON file that polymer reads to create documentation. This JSON is created based on the JSDoc comments present in the file provided.

$polymer analyze *.js > analysis.json

Once analysis.json is created run the below command to serve the file. Optional parameter --open to launch browser.

$ polymer serve [--open]

Running Tests

Once the files are served using polymer serve navigating to \test runs the test files

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.