Skip to content

asmigas/Lightning_Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This Lightning custom datepicker for Salesforce c:customDatePicker

This datepicker is a customisable of the datepicker that fit all your projects.

See below to discover all customisable components.

Note: This component uses Javascript without third-party frameworks and libraries but it using SLDS.

API

currentDate

  • The current date for example currentDate="2015-01-18"

Format

  • date format displayed in datePicker for example format="MMM dd, YYYY"
  • default value "MMM dd, YYYY"

Label

  • set laber for datepicker

Header

  • It allows or denies display of a header with a full description of the date.
  • default header="true"

Color

  • This attribute set the color styles as the background and color
  • default bgcolor="rgb(194, 57, 52)" color="white"

Format day

  • This attribute identifies the beginning of the week. Euro - starts from Monday, USA - starts from Sunday
  • default formatDay="USA"

Animation

  • This attribute enable or disable animation. animation = "true"
  • default animation = "false"

EnablePicker

  • This attribute enable or disable datePicker. enablePicker = "true"
  • default enablePicker = "true"

new Version 2.0:

What's new?

Demos & Examples:

mobile version (Salesforce 1):

<c:customDatePicker aura:id="CDP04" animation="true" bgcolor="#16171529" currentDate="2019-01-05" color="#CC2EFA" header="true" formatDay="Euro"/>

m11

<c:customDatePicker bgcolor="#2c97a7" currentDate="2019-01-01"  header="true" formatDay="Euro"/>

m12 m4

PC version:

<c:customDatePicker aura:id="CDP01" currentDate="2019-01-18" format="MMM dd, YYYY" header="true" label="Custom DatePicker"/>

p1 p2 p3

<c:customDatePicker currentDate="2019-01-19" format="MMM dd, YYYY"  enablePicker="false" label="False enable DatePicker"/>

p22

<c:customDatePicker bgcolor="yellow" color="green" header="true" enablePicker="true"/>

p33

<c:customDatePicker aura:id="CDP04" animation="true" bgcolor="#16171529" currentDate="2019-01-05" color="#CC2EFA" header="true" formatDay="Euro"/>

p44

<c:customDatePicker formatDay="Euro" bgcolor="black" color="yellow" format="YYYY/MM, DD" header="false" />

p55 p56 p57

<c:customDatePicker bgcolor="#2c97a7" currentDate="2019-01-01"  header="true" formatDay="Euro"/>

p66 p67 p68

About

Lightning_Challenge (Custom DatePicker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •