I'm experiencing odd behaviors (behaviours): I'm trying to understand, with regards to, a custom dialog and reused umbraco editors.
The first issue is a relationship between the dialog and a datetimepicker:
If I change leave the dialog.options.container property alone the dialog opens, the onclick events are fine (for all property editors) except the datepicker modal timepicker never opens. I can edit the time manually from the text box, but the modal timepicker never opens if you click the "calendar" icon.
If I change the dialog.options.container property to "$('#contentcolumn')" for instance. the datetimepicker timepicker modal opens.. but then a "close" event on the whole dialog is fired. clicking a new value from the dropdown closes the dialog, clicking off of the datetime picker closes the dialog.
i have a custom propertyeditor "committeemeetings.edit.controller" where i define a button with an "onClick" event to open the dialog:
$scope.onEdit = function (committeeId) { // id of the committee/session that is being edited from the given $scope.model.value array
var item = $scope.model.value.filter(function (itm) { return itm.CommitteeId == committeeId;});; // list of committees/sessions for this meeting.
var config = {
animation: "fade",
modalClass: "umb-overlay",
// width: "100%",
// inline: true,
// iframe: false,
show: true,
template: "/App_Plugins/PublicInformation/propertyEditors/directives/committeemeetings/committeemeetings.dialog.html",
callback: done,
// element: undefined,
//this allows us to pass in data to the dialog if required
//which can be used to configure the dialog
//and re-use it for different purposes. It will set on to the
//$scope.dialogData if it is defined.
dialogData: item[0]
};
function done(data) { console.info(data); };
var committeeDialog = dialogService.open(config);
};
The onClick event opens my editor. The dialogData object has my data. My dialog has 2 propertyeditors I'm reusing as such:
Which way is the better way to skin this cat? (after figuring out the scope of scope as I traversed from the main backoffice section, to the custom property editor to the overlay and back again...this behaves the best...)
My implementation is not quite as reusable though.
Dialog or propertyeditor events
I'm experiencing odd behaviors (behaviours): I'm trying to understand, with regards to, a custom dialog and reused umbraco editors.
The first issue is a relationship between the dialog and a datetimepicker:
If I change leave the dialog.options.container property alone the dialog opens, the onclick events are fine (for all property editors) except the datepicker modal timepicker never opens. I can edit the time manually from the text box, but the modal timepicker never opens if you click the "calendar" icon.
If I change the dialog.options.container property to "$('#contentcolumn')" for instance. the datetimepicker timepicker modal opens.. but then a "close" event on the whole dialog is fired. clicking a new value from the dropdown closes the dialog, clicking off of the datetime picker closes the dialog.
i have a custom propertyeditor "committeemeetings.edit.controller" where i define a button with an "onClick" event to open the dialog:
The onClick event opens my editor. The dialogData object has my data. My dialog has 2 propertyeditors I'm reusing as such:
The Committee.model is a dropdown (initialized as such in the my dialog controller):
The StartTime datatimepicker is initialized as such:
so... i replaced my "dialogservice" implementation with a umb-overlay in the custom property editor...
Which way is the better way to skin this cat? (after figuring out the scope of scope as I traversed from the main backoffice section, to the custom property editor to the overlay and back again...this behaves the best...)
My implementation is not quite as reusable though.
is working on a reply...