EasyUI Forum
May 03, 2024, 04:27:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2] 3
16  General Category / EasyUI for Angular / Re: How to dynamically create a tabpanelcomponent and add it to an existed Tabs? on: February 03, 2018, 03:00:48 AM
Thanks a lot. In the sample, each time click "adddatagrid" button, it will add a new tab. Is it possible just allow the first time, when 2nd time or later just make the former 1st added tab active.
17  General Category / EasyUI for Angular / How to dynamically create a tabpanelcomponent and add it to an existed Tabs? on: February 02, 2018, 02:17:14 AM
I use the way of angular dynamic loading. But failed with the following:

core.js:1440 ERROR Error: StaticInjectorError(AppModule)[TabPanelComponent -> TabsComponent]:
  StaticInjectorError(Platform: core)[TabPanelComponent -> TabsComponent]:
    NullInjectorError: No provider for TabsComponent!
18  General Category / EasyUI for Angular / Re: How to dynamically add tabs with layout for angular? on: February 02, 2018, 01:58:43 AM
Hi,
Could you give us sample for dynamically add tab and load another angular component to the added tab? I searched the web.Most of them is static way.
19  General Category / EasyUI for Angular / Re: How to dynamically add tabs with layout for angular? on: February 02, 2018, 12:02:01 AM
Hi :
Could you please kindly give us a sample of this? Thanks a lot for your great help.
20  General Category / EasyUI for Angular / Re: How to dynamically add tabs with layout for angular? on: February 01, 2018, 06:51:01 AM
Hi,
Is there api method like addTab in ts code not the template way in your sample code? Just like Jquery EasyUI?
21  General Category / EasyUI for Angular / Re: How to automatically create grid columns according to server side tabular data? on: February 01, 2018, 05:40:31 AM
Hi,
Thanks. Sorry for the confusion, what i mean is to do that from one round trip to the server not first the columns and then data. 
22  General Category / EasyUI for Angular / How to check if a TabPanelComponent exits in the TabsComponent's panels list? on: February 01, 2018, 03:28:06 AM
How to check if a TabPanelComponent exits in the TabsComponent's panels list by the TabPanelComponent's name?
23  General Category / EasyUI for Angular / How to automatically create grid columns according to server side tabular data? on: February 01, 2018, 01:28:15 AM
How to automatically create grid columns according to server side tabular data?
24  General Category / EasyUI for Angular / Re: Please add fit layout options to TabsCompoent on: January 25, 2018, 07:41:29 AM
<eui-layout #layout fit ="true" style="height: 100%">
  <eui-layout-panel region="north" class="logo" title="后台管理"   style="text-align:center;">
  </eui-layout-panel>
  <eui-layout-panel region="west" title="导航" collapsible="true" euiResizable handles="e"  style="width:150px;" (resizing)="layout.updatePaddings()">
    <eui-tree [data]="menuData"></eui-tree>
  </eui-layout-panel>
  <eui-layout-panel region="center" style="display:flex;flex:1;height:100%;">
    <eui-tabs style="display:flex;flex:1">
      <eui-tab-panel [title]="'Tab1'"[bodyStyle]="{display:'flex' }"  style="border: 1px solid red;padding: 0px">
        <eui-panel style="flex:1;">
          <eui-datagrid
            [pagination]="true"
            [lazy]="true"
            [data]="data"
            [total]="total"
            [pageNumber]="pageNumber"
            [pageSize]="pageSize"
            [pagePosition]="pagePosition"
            [loading]="loading"
            (pageChange)="onPageChange($event)">
            <eui-grid-column field="inv" title="Inv No"></eui-grid-column>
            <eui-grid-column field="name" title="Name"></eui-grid-column>
            <eui-grid-column field="amount" title="Amount" align="right"></eui-grid-column>
            <eui-grid-column field="price" title="Price" align="right"></eui-grid-column>
            <eui-grid-column field="cost" title="Cost" align="right"></eui-grid-column>
            <eui-grid-column field="note" title="Note"></eui-grid-column>
          </eui-datagrid>
        </eui-panel>
      </eui-tab-panel>
      <eui-tab-panel [title]="'Tab2'"></eui-tab-panel>
      <eui-tab-panel [title]="'Tab3'"></eui-tab-panel>
    </eui-tabs>
  </eui-layout-panel>
  <eui-layout-panel region="south">
    <eui-panel-header>
      <div class="panel-title" style="text-align:center">版权所有 2015-2017</div>
    </eui-panel-header>
  </eui-layout-panel>>
</eui-layout>
25  General Category / EasyUI for Angular / Re: Please add fit layout options to TabsCompoent on: January 23, 2018, 08:16:20 AM
Hi,
I tried your suggestion, but failed and caused a new problem about datagrid columns. You can check the attached picture.
26  General Category / EasyUI for Angular / How to make LayoutPanelComponent's title align center? on: January 22, 2018, 09:09:51 AM
How to make LayoutPanelComponent's title align center?
27  General Category / EasyUI for Angular / Re: Please add fit layout options to TabsCompoent on: January 22, 2018, 08:16:17 AM
Hi
I have tried set inline style:style="flex:1;border: 1px solid red;", but not worked.
28  General Category / EasyUI for Angular / Please add fit layout options to TabsCompoent on: January 21, 2018, 08:02:58 AM
Please add fit layout options to TabsCompoent,so that we can set the size of tabs container to fit it's parent container.
29  General Category / EasyUI for Angular / Re: Please add fit layout options to LayoutComponet on: January 20, 2018, 07:35:28 AM
Hi,
how to make it take 100% of the page?
30  General Category / EasyUI for Angular / Re: Please add fit layout options to LayoutComponet on: January 19, 2018, 11:11:27 PM
Hi,
But i tried your splitpanel layout demo, the height cannot be 100% event if i set the style height = '100%'
Pages: 1 [2] 3
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!