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
Hello everyone
anyone has a Prevalue editor for dates ?
thank you
AS
maybe this one will help https://our.umbraco.com/forum/using-umbraco-and-getting-started/77743-prevaluedisplayresolver-could-not-find-persisted-pre-value-for-fieldcookie clicker
hello jenniecassin
the problem is that i need to use datetimepicker inside my dataType parameters to choose a date but inside prevalueeditors there is none for dates or DateTImes ! :(
my mistake. sorry for unrelated reply
Hi Angelo,
May ask what the use case is for having a date as prevalue ? There might be other ways around this.
Dave
Hello Dave
yes at the moment i have a free text input but its not the best solution :(
i also had the picker form umbraco ...it works but im not able to configure it ...
ok guys for any one wanting a prevalueeditor for dates here is the example for the same needs that i had
View and controller:
<div ng-controller="My.Date as vm"> <umb-date-time-picker ng-model="vm.date" options="vm.config" on-change="vm.datePickerChange(selectedDates, dateStr, instance)"> </umb-date-time-picker> </div> (function () { "use strict"; function datePicker($scope) { var vm = this; vm.date = $scope.model.value; var value; vm.config = { enableTime: false, dateFormat: "d-m-y", time_24hr: false }; vm.datePickerChange = datePickerChange; function datePickerChange(selectedDates, dateStr, instance) { value = dateStr; } $scope.$on("formSubmitting", function () { $scope.model.value = value; }); } angular.module("umbraco").controller("My.Date", datePicker); })();
dont forget to put your js controller in the package.manifest file :) ...thats it
Angelo
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Prevalue editor for dates
Hello everyone
anyone has a Prevalue editor for dates ?
thank you
AS
maybe this one will help https://our.umbraco.com/forum/using-umbraco-and-getting-started/77743-prevaluedisplayresolver-could-not-find-persisted-pre-value-for-fieldcookie clicker
hello jenniecassin
the problem is that i need to use datetimepicker inside my dataType parameters to choose a date but inside prevalueeditors there is none for dates or DateTImes ! :(
thank you
my mistake. sorry for unrelated reply
Hi Angelo,
May ask what the use case is for having a date as prevalue ? There might be other ways around this.
Dave
Hello Dave
yes at the moment i have a free text input but its not the best solution :(
i also had the picker form umbraco ...it works but im not able to configure it ...
thank you
AS
ok guys for any one wanting a prevalueeditor for dates here is the example for the same needs that i had
View and controller:
dont forget to put your js controller in the package.manifest file :) ...thats it
thank you
Angelo
is working on a reply...