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); }
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); } }); }
public Action removeClass(jElement element, string className) { return null; }
public Action move(jElement element, jElement parentElement, jElement afterElement, Action doneCallback) { return null; }
public Action move(jElement element, jElement parentElement, jElement afterElement) { return null; }
public Action leave(jElement element, Action doneCallback) { return null; }
public Action leave(jElement element) { return null; }
public Action move(jElement element, jElement parentElement, jElement afterElement, Action doneCallback) { return(null); }
public Action setClass(jElement element, string add, string remove, Action doneCallback) { return null; }
public Action setClass(jElement element, string add, string remove, Action doneCallback) { return(null); }
public bool enabled(bool value, jElement element) { return(false); }
public Action setClass(jElement element, string add, string remove) { return(null); }
public Action removeClass(jElement element, string className, Action doneCallback) { return(null); }
public Action removeClass(jElement element, string className) { return(null); }
public Action removeClass(jElement element, string className, Action doneCallback) { return null; }
public Action leave(jElement element, Action doneCallback) { return(null); }
public Action setClass(jElement element, string add, string remove) { return null; }
public Action move(jElement element, jElement parentElement, jElement afterElement) { return(null); }
public bool enabled(bool value, jElement element) { return false; }
public Action leave(jElement element) { return(null); }