<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 構建表單構建器對象 通過公共方法`YF('general_example')`返回一個id為`general_example`的表單構建器對象。 * 方式一:鏈式操作 ```php $builder=YF('general_example') ->tab(['base'=>'基礎','other'=>'其他']) ->field(function($tab){...}) ->button([...]) ->load(function(){...}) ->submit(function($data,$tab_data){...}); ``` * 方式二:數組配置 ```php $args = [ "tab"=>['base'=>'基礎','other'=>'其他'], "field"=>function($tab){...}, "button"=>[...], "load"=>function(){...}, "submit"=>function($data,$tab_data){...} ]; $builder=YF('general_example',$args); ``` ## 渲染輸出(控制器調用assign方法) 在控制器中使用如下方法將表單數據渲染輸出到視圖模板,詳見:[表單構建器渲染輸出](http://www.hmoore.net/worklz/yunj_admin_universal/2017874) ~~~ $builder->assign(\yunj\Controller $this); // 視圖渲染 return $this->fetch(); ~~~ ## 視圖頁面 ~~~ <!-- 繼承公共模板文件 --> {extend name="yunj@admin/public/iframe/layout"} <!-- 重寫content內容 --> {block name="content"} <div class="layui-row layui-col-space15"> <div class="layui-col-md12"> <!-- form標簽定義type屬性為yunj,id與后端扁擔構建器id一致 --> <form type="yunj" id="general_example"></form> </div> </div> {/block} ~~~ > 提示:支持一個頁面渲染多個表單。 > 小技巧:當頁面只有一個表單時,可通過添加class="header-fixed"讓表單頭部固定。示例:`<form type="yunj" id="general_example" class="header-fixed"></form>`
                  <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>

                              哎呀哎呀视频在线观看