コード例 #1
0
ファイル: GridColumnRender.cs プロジェクト: zmk523/Util
 /// <summary>
 /// 渲染左侧占位列
 /// </summary>
 private void RenderBeforeColumn( TextWriter writer, HtmlEncoder encoder )
 {
     if ( _config.Contains( UiConst.BeforeColspan ) == false )
         return;
     var builder = new GridColumnBuilder();
     builder.AddColspan( _config, UiConst.BeforeColspan );
     builder.WriteTo( writer, encoder );
 }
コード例 #2
0
        /// <summary>
        /// 渲染控件
        /// </summary>
        private void RenderControl(TextWriter writer, HtmlEncoder encoder)
        {
            if (_config.Contains(UiConst.Colspan) == false)
            {
                Builder.WriteTo(writer, encoder);
                return;
            }
            var columnBuilder = new GridColumnBuilder();

            columnBuilder.AddColspan(_config, UiConst.Colspan);
            columnBuilder.SetContent(Builder);
            columnBuilder.WriteTo(writer, encoder);
        }
コード例 #3
0
 /// <summary>
 /// 配置合并
 /// </summary>
 private void ConfigSpan(GridColumnBuilder builder)
 {
     builder.AddColspan(_config, UiConst.Colspan);
     builder.AddAttribute("rowspan", _config.GetValue(UiConst.Rowspan));
 }