/kontent-custom-element-sample-date-picker

jQuery date picker custom element sample for Kentico Kontent

Primary LanguageCSSMIT LicenseMIT

⚠️ Deprecation notice

This repository has been archived and is no longer maintained.

Date Picker Custom Element Sample for Kentico Kontent

This is a custom element for Kentico Kontent that allows users to use the jQuery UI date picker to select a date.

Screenshot of custom element

Setup

  1. Deploy the code to a secure public host
  2. Follow the instructions in the custom elements documentation to add the element to a content model.
    • The Hosted code URL is where you deployed to in step 1
    • Pass any optional parameters as directing in the JSON Parameters configuration section of this readme.

Deploying

Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your GitHub account as well.

Deploy to Netlify

JSON Parameters

You can specify the format of the saved value by setting the optional dateFormat property in the JSON parameters:

{
  "dateFormat": "dd/mm/yy"
}

Saved Value

The value is saved as a string representing the selected date as a string formatted according to the

Contributors

Originally contributed by @matus666