Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kamil Jakubczak 1 post 71 karma points c-trib
    Jun 08, 2017 @ 16:02
    Kamil Jakubczak
    0

    Extending behavior of datepicker

    Hello,

    I've problem with Properties tabs and datepickers in general. I quite cannot get them work differently than simply overriding an Angular controller

    • there is publish / unpublish datepickers as usual
    • there are plenty of stores, but one of them needs special behavior for that datepicker
    • what i did is i override datepicker and pretty much copy pasted the code from datepicker as below

      angular.module("umbraco").controller("Umbraco.PropertyEditors.DatepickerController", ["$scope", ...

    • it does the same stuff as regular Datepicker but it also extends behavior in one case

    Is there a better way to solve it? Because what i found, is that there is no real way to actually modify Properties tab. And I want to make that Datepicker changed behavior works everywhere across whole Store and every child in that one.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies