FineUI中在一个页面中通过控件事件(JS)向父页面中添加Tab页

1、在前台页面尾部添加js代码

</form>
    <script type="text/javascript">
        var basePath = '<%= ResolveUrl("~/") %>';
        function openHelloFineUI()
        {
            parent.addExampleTab.apply(null, ['test_tab', basePath + 'admin/user.aspx', '测试页面', basePath + 'res/images/filetype/vs_aspx.png', true]);
        }
        function closeActiveTab()
        {
            parent.removeActiveTab();
        }
    </script>

2、在页面中放置Button

<Items>
                            <f:Button ID="btnTest" runat="server" Text="测试" EnablePostBack="false"  OnClientClick="openHelloFineUI()">
                            </f:Button>
                            <f:TwinTriggerBox ID="ttbSearchMessage" runat="server" ShowLabel="false" EmptyText="在点位名称中搜索"
                                Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
                                OnTrigger1Click="ttbSearchMessage_Trigger1Click">
                            </f:TwinTriggerBox>
                            <f:Label ID="Label1" runat="server">
                            </f:Label>
                        </Items>

上一篇:Elasticsearch 单模式下API的增删改查操作


下一篇:省市县联动dropdownlist