Пример #1
0
 public override void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "first()[0]['editor'].setValue"
     });
 }
Пример #2
0
 public override void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "children('p').text"
     });
 }
Пример #3
0
 public void Bind_Disabled(BinderGetMethod<bool> getValueMethod)
 {
     AddBinder(new OneWayBinder<bool>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "prop",
         jsSetPropertyName = "disabled"
     });
 }
Пример #4
0
        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());
        }
Пример #5
0
 public virtual void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "text"
     });
 }
Пример #6
0
 public void Bind_OnTrueClass(BinderGetMethod<bool> getValueMethod, string className)
 {
     AddBinder(new ToggleClassBinder
     {
         IsToogleOnTrue = true,
         ModelGetMethod = getValueMethod,
         ClassName = className
     });
 }