Hi guys,
Can you give me an example manifest file for binding to a DateTime field?
I've tried the following manifest file and it comes up with compile error :
" [tsl] ERROR in C:\PCF_Controls\_PCF\CountDownTimer\CountDownTimer\index.ts(231,4)
TS2322: Type 'string' is not assignable to type 'Date | undefined'."
<?xml version="1.0" encoding="utf-8" ?>
<manifest>
<control namespace="ControlsAndrewLy" constructor="CountDownTimer" version="0.0.1" display-name-key="Countdown Timer Control"
description-key="A simple countdown timer, takes a date as an input" control-type="standard">
<!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
<property name="inputDate" display-name-key="Input Date" description-key="Input Date to be used for the countdown timer."
of-type="DateAndTime.DateOnly" usage="bound" required="true" />
<resources>
<code path="index.ts" order="1"/>
<css path="css/CountDownTimer.css" order="1" />
<!-- UNCOMMENT TO ADD MORE RESOURCES
<resx path="strings/CountDownTimer.1033.resx" version="1.0.0" />
-->
</resources>
</control>
Following the docs online
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property#remarks
I am using DateAndTime.DateOnly should be an acceptable parameter of of-type?