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