zoukankan      html  css  js  c++  java
  • [K/3Cloud] 如何在k3Cloud主页实现自定义页面的开发

    过自定义页签动态添加一些内容,比如网页链接、图片等。

    1.PNG 

    如果是动态的增加链接,可以参考一下代码,然后在ButtonClick事件里面对链接进行处理。

    public override void AfterBindData(EventArgs e)
            {
                base.AfterBindData(e);
                List<PortalInforationContract> showInfos = GetInfo()//从数据库中读出要动态显示的内容;
                if (showInfos == null)
                {
                    return;
                }
                int linkTop = 5;
                LayoutInfo layoutInfo = new LayoutInfo();
                foreach (PortalInforationContract faq in showInfos)
                {
                    LinkBtnAppearance newLink = new LinkBtnAppearance();  //新建链接
                    newLink.Key = faq.InfoID.ToString();
                    newLink.Caption = new LocaleValue(faq.Subject, this.Context.UserLocale.LCID);
                    newLink.Container = "FPanel";
                    newLink.Top = new LocaleValue(linkTop.ToString(), this.Context.UserLocale.LCID);
                    newLink.Left = new LocaleValue("20", this.Context.UserLocale.LCID);
                    newLink.Width[this.Context.UserLocale.LCID] = "220";
                    layoutInfo.Add(newLink);
                    linkTop += 20;
                }
                //得到要添加内容的面板
                Panel p = this.View.GetControl<Panel>("FPanel");
                //将动态内容逐条加到面板上
                p.AddControls(layoutInfo);
                
            }


  • 相关阅读:
    webpack.config.js====entry入口文件的配置
    准备工作、安装webpack、初始化项目
    git的安装
    Spring validation 后端校验【转】
    http get post 参数校验
    Spring AOP execution表达式
    spring中Constructor、@Autowired、@PostConstruct的顺序【转】
    Mockito
    Mybatis LIKE模糊查询
    PowerMock
  • 原文地址:https://www.cnblogs.com/fyq891014/p/3308522.html
Copyright © 2011-2022 走看看