Datepicker not respecting showTodayButton and allowEdit

We're using the angular datepicker ([email protected])
All works fine but these 2 properties are not respected.
The picker opens but today button still there and still allows edits.
Bug? or something im doing incorrectly
<ejs-datepicker formControlName="startDate" name="startDate" showTodayButton="false" allowEdit="false">ejs-datepicker>

1 Reply

DL Deepa Loganathan Syncfusion Team September 28, 2018 10:47 AM UTC

Hi Jatinder, 
Thanks for Contacting Syncfusion Support. 
To bind the property of a component in angular, you need to do property binding which has a source and a target as given in the below code snippet. Please correct the code accordingly. 
@Component({ 
  selector: 'my-app', 
  template: `<!-- To Render DatePicker --> 
             <ejs-datepicker [allowEdit]=false [showTodayButton]=false></ejs-datepicker>` // allow edit -> target, false -> source 
}) 
export class AppComponent { 
} 

Here the false value is bound to the allowEdit property.  
We have prepared a sample to meet your requirement. Please, find the sample from the below link. 
Also, please go through the following help document to explore more about Datepicker control. 
Please let us know if you have any other concerns. 
 
Regards, 
Deepa L. 


Loader.
Up arrow icon