Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have the standard datetimepicker displayed in my custom section using this html:
<umb-control-group label="Publish Date" description="The RSS publish date"> <umb-editor model="datepicker"></umb-editor> </umb-control-group>
This is how i setup the config for the datepicker:
$scope.datepicker = { view: 'datepicker', config: { pickDate: true, pickTime: true, useSeconds: true, pick12HourFormat: false, format: "DD/MM/YYYY HH:mm:ss" }, value: date };
and I have a $watch event on the datepicker:
$scope.$watch('datepicker', function () { if ($scope.datepicker != undefined && $scope.loaded) { $scope.form.PubDate = $scope.datepicker.value; } }, true);
For the life of me, I can't seem to grab the new value from the datepicker, the datepicker.value value never seems to get updated?
Did you manage to get this working? I'm struggling with the same problem right now!
Not at the moment sorry, I had to move onto something else :(
No worries, I'll keep at it for a while and let you know if I manage to get it working.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Datepicker on change event
I have the standard datetimepicker displayed in my custom section using this html:
This is how i setup the config for the datepicker:
and I have a $watch event on the datepicker:
For the life of me, I can't seem to grab the new value from the datepicker, the datepicker.value value never seems to get updated?
Did you manage to get this working? I'm struggling with the same problem right now!
Not at the moment sorry, I had to move onto something else :(
No worries, I'll keep at it for a while and let you know if I manage to get it working.
is working on a reply...