umbraco7 - Umbraco 7+ backoffice development, client actions -
i new in umbraco backoffice development. followed tutorials that. struggling because don't understand client model of umbraco backoffice. have done following view:
<div ng-controller="umbextend.umbextendtree.importcontroller"> <div class="umb-pane"> <h1>datei hochladen</h1> <p> bitte laden sie die datei hoch, welche importiert werden soll. es sind nur csv dateien erlaubt. </p> <div class="umb-actions"> <input type="file" id="userimportfile"/> </div> <loading></loading> <div class="btn-toolbar pull-right umb-btn-toolbar"> <a id="uploadnowbutton" class="btn btn-primary" ng-click="runimport(99)" prevent-default>benutzer jetzt importieren!</a> </div> </div> </div> <script> function checkuserimportfile() { var btn = $('#uploadnowbutton'); if (!$('#userimportfile').val().trim().endswith(".csv")) { btn.addclass('disabled').fadeto(500, 0); } else { btn.removeclass('disabled').fadeto(500, 1); } } $('#userimportfile').change(function () { checkuserimportfile(); }); checkuserimportfile(); </script>
and following client controller:
'use strict'; (function () { //create controller function umbextendimportcontroller($scope, $routeparams, $http) { //set property on scope equal current route id $scope.id = $routeparams.id; $scope.runimport = function () { } }; //register controller angular .module("umbraco") .controller('umbextend.umbextendtree.importcontroller', umbextendimportcontroller); })();
e.g. want hide contextmenu on runimport click, view shown. how can that? there examples or documentations client model of umbraco backoffice version 7+?
here api documentation v7 office: http://umbraco.github.io/belle/#/api it's not complete, gives starting point.
as hiding context menu, can't there, best advice can give @ office source code here: https://github.com/umbraco/umbraco-cms/tree/dev-v7/src/umbraco.web.ui.client , have @ how things done in core code. that's first port if call when i'm trying in office!
Comments
Post a Comment