Example #1
0
 public void Link(Scope _scope, jElement elem, Attributes attrs)
 {
     elem.bind("blur", (ev) =>
     {
         _scope.Apply <string>(attrs["todoBlur"]);
     });
 }
        public void Link(Scope _scope, jElement iElement, Attributes iAttrs, AccordionController acontroller)
        {
            ExpanderController ctrl = _scope.ControllerAs <ExpanderController>("ccc");

            ctrl.accordionController = acontroller;
            ctrl.accordionController.addExpander(ctrl);
        }
Example #3
0
        public void Link(Scope scope, jElement el, Attributes attrs, NgModelController ngModel)
        {
            dynamic element = el;

            if (ngModel == null)
            {
                return;            // do nothing if no ng-model
            }
            // Write data to the model
            Action read = () =>
            {
                var html = element.html();
                // When we clear the content editable the browser leaves a <br> behind
                // If strip-br attribute is provided then we strip this out
                string stripBr = attrs["stripBr"];
                if (stripBr != "" && html == "<br>")
                {
                    html = "";
                }
                ngModel.setViewValue(html);
            };

            // Specify how UI should be updated
            ngModel.render = () => {
                element.html(_sce.getTrustedHtml(ngModel.viewValue));
            };

            // Listen for change events to enable binding
            element.on("blur keyup change", (Action) delegate() {
                scope.Apply(read);
            });
            read(); // initialize
        }
 public void Link(Scope _scope, jElement elem, Attributes attrs)
 {
     _scope.Watch <bool>(attrs["todoFocus"], (newValue, oldValue) =>
     {
         if (newValue)
         {
             timeout.Set(() => { elem[0].Focus(); }, 0, false);
         }
     });
 }
Example #5
0
 public Action removeClass(jElement element, string className) { return null; }
Example #6
0
 public Action move(jElement element, jElement parentElement, jElement afterElement, Action doneCallback) { return null; }
Example #7
0
 public Action move(jElement element, jElement parentElement, jElement afterElement) { return null; }
Example #8
0
 public Action leave(jElement element, Action doneCallback) { return null; }
Example #9
0
 public Action leave(jElement element) { return null; }
Example #10
0
 public Action move(jElement element, jElement parentElement, jElement afterElement, Action doneCallback)
 {
     return(null);
 }
Example #11
0
 public Action setClass(jElement element, string add, string remove, Action doneCallback) { return null; }
Example #12
0
 public Action setClass(jElement element, string add, string remove, Action doneCallback)
 {
     return(null);
 }
Example #13
0
 public bool enabled(bool value, jElement element)
 {
     return(false);
 }
Example #14
0
 public Action setClass(jElement element, string add, string remove)
 {
     return(null);
 }
Example #15
0
 public Action removeClass(jElement element, string className, Action doneCallback)
 {
     return(null);
 }
Example #16
0
 public Action removeClass(jElement element, string className)
 {
     return(null);
 }
Example #17
0
 public Action removeClass(jElement element, string className, Action doneCallback) { return null; }
Example #18
0
 public Action leave(jElement element, Action doneCallback)
 {
     return(null);
 }
Example #19
0
 public Action setClass(jElement element, string add, string remove) { return null; }
Example #20
0
 public Action move(jElement element, jElement parentElement, jElement afterElement)
 {
     return(null);
 }
Example #21
0
 public bool enabled(bool value, jElement element) { return false; }      
Example #22
0
 public Action leave(jElement element)
 {
     return(null);
 }