/// <summary> /// 设置子元素 /// </summary> protected override void SetChildElements() { IonInfiniteScroll control = this.ControlHost.Content as IonInfiniteScroll; this.HtmlWriter.AddAttribute("loadingSpinner", "bubbles"); this.HtmlWriter.AddAttribute("loadingText", "加载更多..."); this.HtmlWriter.RenderBeginTag("wm-infinite-scroll-content"); this.HtmlWriter.RenderEndTag(); }
/// <summary> /// 设置属性 /// </summary> protected override void SetAttributes() { IonInfiniteScroll control = this.ControlHost.Content as IonInfiniteScroll; //控件属性绑定 string bindPropertyStr = BuildCommon.BuildControlBindProperty(control, this.ScreenDefinition, this.IsPreview); if (!string.IsNullOrEmpty(bindPropertyStr)) { this.HtmlWriter.AddAttribute(bindPropertyStr, null); } base.SetAttributes(); }