huwred
08/25/2023, 11:38 AMAnders Bjerner
08/25/2023, 11:54 AMhuwred
08/25/2023, 12:38 PMhuwred
08/25/2023, 12:42 PMhtml
<umb-overlay ng-if="content.myPickerOverlay.show" model="content.myPickerOverlay" view="content.myPickerOverlay.view" position="right" />
The onclick does this
js
$scope.content.myPickerOverlay = {
view: "/App_Plugins/Quiz/backoffice/overlays/picker/picker.overlay.html",
title: "Select Question",
show: true,
hideSubmitButton: false,
submit: function (model) {
if (model.selection && model.selection.length > 0) {
$scope.content.selection = model.selection[0];
$scope.model.value = model.selection[0].id;
}
$scope.content.myPickerOverlay.show = false;
$scope.content.myPickerOverlay = null;
$scope.content.error = null;
},
close: function () {
$scope.content.myPickerOverlay.show = false;
$scope.content.myPickerOverlay = null;
$scope.content.error = null;
}
};
Jemayn
08/25/2023, 12:50 PMhuwred
08/25/2023, 1:04 PMAnders Bjerner
08/25/2023, 1:13 PMsize
property as part of the options. Eg. size: "small"
Jemayn
08/25/2023, 1:14 PMhuwred
08/25/2023, 1:23 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by