コード例 #1
0
        public object ToJsObject()
        {
            var jObj = this.ToDynamic();

            if (!Script.IsNaN(Classes))
            {
                jObj.classes = Classes.ToJsDynamic();
            }
            if (!Script.IsNaN(Content))
            {
                jObj.content = new jQuery2.jQuery(Content);
            }
            if (!Script.IsNaN(Hide))
            {
                jObj.hide = Hide.ToJsObject();
            }
            if (!Script.IsNaN(Position))
            {
                jObj.position = Position.ToJsObject();
            }
            if (!Script.IsNaN(Show))
            {
                jObj.show = Show.ToJsObject();
            }

            return(jObj);
        }
コード例 #2
0
        public object ToJsObject()
        {
            var jObj = this.ToDynamic();

            if (!Script.IsNaN(Classes))
            {
                jObj.classes = Classes.ToJsDynamic();
            }
            if (!Script.IsNaN(Event))
            {
                jObj["event"] = Event.ToString();
            }
            if (!Script.IsNaN(HeightStyle))
            {
                jObj.heightStyle = HeightStyle.ToString();
            }
            if (!Script.IsNaN(Hide))
            {
                jObj.hide = Hide.ToJsObject();
            }
            if (!Script.IsNaN(Show))
            {
                jObj.show = Show.ToJsObject();
            }
            return(jObj);
        }