SOURCE

console 命令行工具 X clear

                    
>
console
cola(function(model){
    model.describe("employees", {
        provider: {
          url:"http://open-data.cola-ui.com/service/employee/find",
          pageSize:5
        }
    });
})
<c-pager bind="employees">
  <item caption="添加" icon="plus"></item>
  <item caption="编辑" icon="edit"></item>
  <item><c-button caption="保存" icon="save"></c-button></item>
  <item><c-input></c-input></item>
  
  <div class="right menu">
    <item page-code="pages"></item>
  </div>
</c-pager>
<br>

<c-table bind="employees" height="400" currentPageOnly="true">
  <column property="name" caption="名称" sortable="true"></column>
  
    <column property="phone" caption="电话" sortable="true"></column>
  <column property="email" caption="邮箱" sortable="true"></column>
</c-table>

本项目引用的自定义外部资源