0

I need the following Datepicker UI design as show in LDS base variant. https://lightningdesignsystem.com/components/datepickers/#content

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_ui_inputDateTime.htm

i have tried with following code, but i'm getting normal datepicker only.

<lightning:input type="datetime-local" label="Birthday" name="datetime" />

How to make it work using lightning:input ?

  • 1
    SLDS is not currently supported with lightning:input for date picker. – Himanshu Nov 28 '17 at 8:31
3

as @Himanshu commented - lightning:input does not support SLDS yet,

But ui:inputDate does:

<ui:inputDate displayDatePicker="true"/>

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.