<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國際加速解決方案。 廣告
                ### 方法 動態控件實例: ```php $dynamicControl= $formControl->dynamicControl(); ``` 設置皮膚:`默認 'lay-skin' => 'nob', 'lay-size' => 'sm'` > 支持以下選項 * - lay-skin=grid 全邊框 * - lay-skin=line 行邊框表格 * - lay-skin=row 列邊框表格 * - lay-skin=nob 無邊框 * * - lay-size=sm 小尺寸 * - lay-size=lg 大尺寸 * - lay-even="" 偶數行背景色 ```php $dynamicControl->skinAttribute([ 'lay-skin' => 'line' ]); ``` 設置允許拖拽排序: ```php $dynamicControl->allowDragSorting() ``` 設置允許刪除默認行: ```php $dynamicControl->allowDefaultDrop() ``` 全局設置單元格最小寬度: `默認: 80` ```php $dynamicControl->cellMinWidth(100) ``` 設置控件標簽: ```php $dynamicControl->label('文本'); ``` 設置默認數據: ```php $dynamicControl->data([ [ 'field1' => 1, 'field2' => 2, // ... ], [ 'field1' => 3, 'field2' => 4, // ... ], ]); ``` 設置控件項: ```php $dynamicControl->items([ 'm' => $this->dynamicControl->file() ->label('測試一下啊') ->scenarioImage() ->scenarioVideo() ->scenarioOther() ->max(1) ->defaultValue(['https://tfs.alipayobjects.com/images/partner/TB1TrI3cTVyDuNk6XeaXXXCWXXa']) ->style(['width' => '50px', 'height' => '50px']), 'a' => $this->dynamicControl->checkbox()->label('多選')->options(['1' => '男', '2' => '女'])->required()->minWidth(150), 'd' => $this->dynamicControl->month()->label('月')->required(), 'e' => $this->dynamicControl->number()->label('數字')->required(), 'f' => $this->dynamicControl->password()->label('密碼')->required(), ]) ``` 設置注釋文本: ```php $dynamicControl->comment('這里是一個注釋文本'); ``` 設置柵欄布局 (默認:12`): ```php $dynamicControl->layout(6); ``` 設置ui類: ```php $dynamicControl->uiClass(['f13']); ``` 設置style樣式: ```php $dynamicControl->style(); ``` 設置html屬性: ```php $dynamicControl->attribute(); ``` ### 鏈式調用 ~~~ $formBuilder->setFormControl([ 'a' => $this->formControl->text()->label('普通文本'), ]) ~~~ ### 代碼示例 ~~~ public function actionAdd() { if ($this->isPost) { // return $this->as403('登錄已失效!'); return $this->asOk('刪除成功!'); // return $this->asFail('刪除失敗, 參數錯誤!'); } else { $get = $this->filteredGet; $viewBuilder = $this->viewBuilder; $viewBuilder->setPartial(); $form = $viewBuilder->form; $form->registerPointcut(H5::alert('我是表單切點', 'info', ['class' => ['mb-0']])) ->setFormControl([ 'j' => $this->formControl->textarea()->label('文本域')->required()->defaultValue('臥槽我\r\n臥槽"\'' . PHP_EOL), 'k' => $this->formControl->checkbox()->defaultValue(['a'])->options(['a' => '我', 'b' => '是', 'c' => '神',])->required()->label('標簽')->tag(), 'l' => $this->formControl->checkbox()->defaultValue(['e', 'f'])->options(['d' => '我', 'e' => '是', 'f' => '神',])->required()->label('多選'), 'm' => $this->formControl->sw()->label('開關')->required()->checked(), 'n' => $this->formControl->hidden()->defaultValue('沖沖沖'), 'o' => $this->formControl->password()->label('密碼')->required()->defaultValue('123456'), 'p' => $this->formControl->radio()->options(['g' => '我', 'h' => '是', 'i' => '神',])->defaultValue('h')->required()->label('單選'), 'q' => $this->formControl->range()->required()->label('范圍')->defaultValue(1), ]) ->setCloseBtn() ->setSubmitBtn() ->setSubmittedCalls([ 'parent' => isset($get['_bid']) ? $get['_bid'] : null, ]) ->setAutoClose(true); return $viewBuilder->render(); } } ~~~
                  <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>

                              哎呀哎呀视频在线观看