コード例 #1
0
ファイル: bsAce.cs プロジェクト: KostiaSA/Buhta5
 public override void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "first()[0]['editor'].setValue"
     });
 }
コード例 #2
0
ファイル: bsAppNavBarButton.cs プロジェクト: KostiaSA/Buhta5
 public override void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "children('p').text"
     });
 }
コード例 #3
0
ファイル: bsAppNavBarButton.cs プロジェクト: KostiaSA/Buhta5
 public void Bind_Disabled(BinderGetMethod<bool> getValueMethod)
 {
     AddBinder(new OneWayBinder<bool>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "prop",
         jsSetPropertyName = "disabled"
     });
 }
コード例 #4
0
ファイル: bsSpan.cs プロジェクト: KostiaSA/Buhta5
        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
ファイル: bsControl.cs プロジェクト: KostiaSA/Buhta5
 public virtual void Bind_Text(BinderGetMethod<string> getValueMethod)
 {
     AddBinder(new OneWayBinder<string>()
     {
         ModelGetMethod = getValueMethod,
         jsSetMethodName = "text"
     });
 }
コード例 #6
0
ファイル: bsControl.cs プロジェクト: KostiaSA/Buhta5
 public void Bind_OnTrueClass(BinderGetMethod<bool> getValueMethod, string className)
 {
     AddBinder(new ToggleClassBinder
     {
         IsToogleOnTrue = true,
         ModelGetMethod = getValueMethod,
         ClassName = className
     });
 }