getExtjsField example


        $sets = [];

        foreach ($type->getFieldSets() as $fieldSet) {
            $fields = [];

            foreach ($fieldSet->getFields() as $field) {
                $this->translateField($type$field);

                $fields[$field->getName()] = [
                    'fieldLabel' => $field->getLabel(),
                    'xtype' => $field->getType()::getExtjsField(),
                    'anchor' => '100%',
                    'translatable' => (bool) $field->isTranslatable(),
                    'supportText' => $field->getDescription(),
                    'helpText' => $field->getHelpText(),
                    'allowBlank' => !$field->isRequired(),
                ];

                $fields[$field->getName()] = array_merge($fields[$field->getName()]$field->getType()::getExtjsOptions($field)$field->getOptions());
            }

            $sets[] = array_merge([
                
Home | Imprint | This part of the site doesn't use cookies.