<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 當前平臺已停止維護,請盡快遷移至[云靜Admin TP6](https://gitee.com/worklz/yunj-admin-tp6) [https://gitee.com/worklz/yunj-admin-tp6](https://gitee.com/worklz/yunj-admin-tp6) ***** ## 構建表格構建器對象 通過公共方法`YT('general_example')`返回一個id為`general_example`的表格構建器對象。 * 方式一:鏈式操作 ```php $builder=YT('general_example') ->state([...]) ->filter(function($state){...}) ->toolbar(function($state){...}) ->defaultToolbar(function($state){...}) ->import(function($state){...}) ->cols(function($state){...}) ->count(function($filter){...}) ->items(function ($limit_start,$limit_length,$filter,$sort){...}) ->event(function ($event,$ids){...}); ``` * 方式二:數組配置 ```php $args = [ "state"=>[11=>'正常',22=>'回收站'], "filter"=>function($state){...}, "toolbar"=>function($state){...}, "defaultToolbar"=>function($state){...}, "import"=>function($state){...}, "cols"=>function($state){...}, "count"=>function($filter){...}, "items"=>function($limit_start,$limit_length,$filter,$sort){...}, "event"=>function($event,$ids){...} ]; $builder=YT('general_example',$args); ``` ## 渲染輸出 詳見:[表格數據渲染輸出](http://www.hmoore.net/worklz/yunj_admin_tp51/2526465) * 方法一:頁面內只有單一表格時,可參考如下方法: 注意!此方法僅支持渲染一個表格構建器,不需要寫視圖文件 ```php // 控制器方法中調用如下方法 $builder = ...; return view_table($builder); ``` * 方法二:自定義頁面內容時,可調用如下方法: 注意!此方法支持一個頁面渲染多個表格構建器,需要寫視圖文件 ```php // 控制器方法中調用如下方法 $builder->assign(\yunj\Controller $this); // 視圖渲染 return $this->fetch(); ``` ## 視圖頁面 ```html {extend name="$adminPage"} {block name="content"} <table type="yunj" id="demo"></table> {/block} ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看