本文整理汇总了PHP中yii\widgets\ActiveForm::fieldSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveForm::fieldSelect方法的具体用法?PHP ActiveForm::fieldSelect怎么用?PHP ActiveForm::fieldSelect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\widgets\ActiveForm
的用法示例。
在下文中一共展示了ActiveForm::fieldSelect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderConfigForm
/**
* @return string
*/
public function renderConfigForm(ActiveForm $activeForm)
{
echo $activeForm->fieldSelect($this, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeList::fieldElements());
echo \skeeks\cms\modules\admin\widgets\RelatedModelsGrid::widget(['label' => \Yii::t('skeeks/cms', "Values for list"), 'hint' => \Yii::t('skeeks/cms', "You can snap to the element number of properties, and set the value to them"), 'parentModel' => $this->property, 'relation' => ['property_id' => 'id'], 'controllerRoute' => $this->enumRoute, 'gridViewOptions' => ['sortable' => true, 'columns' => [['attribute' => 'id', 'enableSorting' => false], ['attribute' => 'code', 'enableSorting' => false], ['attribute' => 'value', 'enableSorting' => false], ['attribute' => 'priority', 'enableSorting' => false], ['class' => \skeeks\cms\grid\BooleanColumn::className(), 'attribute' => 'def', 'enableSorting' => false]]]]);
}
示例2: renderConfigForm
/**
* @return string
*/
public function renderConfigForm(ActiveForm $activeForm)
{
echo $activeForm->fieldSelect($this, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeElement::fieldElements());
echo $activeForm->fieldSelect($this, 'content_id', \skeeks\cms\models\CmsContent::getDataForSelect());
}
示例3: renderConfigForm
/**
* @return string
*/
public function renderConfigForm(ActiveForm $activeForm)
{
echo $activeForm->fieldSelect($this, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeText::fieldElements());
echo $activeForm->fieldInputInt($this, 'rows');
echo $activeForm->field($this, 'default_value');
}
示例4: renderConfigForm
public function renderConfigForm(ActiveForm $form)
{
echo $form->fieldSet(\Yii::t('app', 'Main'));
echo $form->fieldSelect($this, 'themeColor', static::themes(), ['allowDeselect' => true]);
echo $form->fieldRadioListBoolean($this, 'boxedLayout');
echo $form->field($this, 'boxedBgImage')->widget(\skeeks\cms\modules\admin\widgets\formInputs\OneImage::className());
echo $form->field($this, 'boxedBgCss')->textInput()->hint('repeat or fixed center center');
echo $form->fieldSetEnd();
}