public override void Bind_Text(BinderGetMethod<string> getValueMethod) { AddBinder(new OneWayBinder<string>() { ModelGetMethod = getValueMethod, jsSetMethodName = "first()[0]['editor'].setValue" }); }
public override void Bind_Text(BinderGetMethod<string> getValueMethod) { AddBinder(new OneWayBinder<string>() { ModelGetMethod = getValueMethod, jsSetMethodName = "children('p').text" }); }
public void Bind_Disabled(BinderGetMethod<bool> getValueMethod) { AddBinder(new OneWayBinder<bool>() { ModelGetMethod = getValueMethod, jsSetMethodName = "prop", jsSetPropertyName = "disabled" }); }
public static MvcHtmlString bsSpan(this HtmlHelper helper, BinderGetMethod<string> getTextMethod) { var tag = new bsSpan(helper.ViewData.Model as BaseModel); tag.Bind_Text(getTextMethod); (helper.ViewData.Model as BaseModel).Helper = helper; var script = new StringBuilder(); var html = new StringBuilder(); return new MvcHtmlString(tag.GetHtml()); }
public virtual void Bind_Text(BinderGetMethod<string> getValueMethod) { AddBinder(new OneWayBinder<string>() { ModelGetMethod = getValueMethod, jsSetMethodName = "text" }); }
public void Bind_OnTrueClass(BinderGetMethod<bool> getValueMethod, string className) { AddBinder(new ToggleClassBinder { IsToogleOnTrue = true, ModelGetMethod = getValueMethod, ClassName = className }); }