首页 > 解决方案 > 您如何以模式形式转到下一个选项卡?

问题描述

我对架构表单有疑问,也许你可以帮助我,这是我的表单,我需要从一个选项卡转到另一个选项卡。

有没有办法做到这一点?

我有一个底部,可以从选项卡中获取 id,但我不能让它跳转到其他选项卡。

"form": [
    {
        "type": "fieldset",
        "title": "Ficha Base",
        "items": [
            {
                "type": "tabs",
                "style": "padding-top: 5px;",
                "tabs": [
                    {
                        "title": "Datos Personales",
                        "id": "1",
                        "items": [
                            {
                                "type": "section",
                                "htmlClass": "row",
                                "items": [
                                    {
                                        "type": "section",
                                        "htmlClass": "col-md-6 col-xs-12",
                                        "items": [
                                            {
                                                "type": "button",
                                                "style": "btn btn-primary",
                                                "title": "Enviar",
                                                "onClick": "siguientePestana('1')"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "title": "Datos Académicos Enseñanza Superior",
                        "id": "2",
                        "items": [
                            {
                                "type": "section",
                                "htmlClass": "row",
                                "items": [
                                    {
                                        "type": "section",
                                        "htmlClass": "row",
                                        "items": [
                                            {
                                                "type": "section",
                                                "htmlClass": "col-md-12",
                                                "items": [
                                                    {
                                                        "type": "button",
                                                        "style": "btn btn-primary",
                                                        "title": "Enviar1",
                                                        "onClick": "siguientePestana('2')",
                                                        "condition": "model.ocultarCampo"
                                                    },
                                                    {
                                                        "type": "help",
                                                        "helpvalue": "<div class=\"alert alert-info\">Asegurece de entrar en con el perfil y fecha correcta para actualizar el formulario</div>",
                                                        "condition": "!model.ocultarCampo"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
]

标签: angularformstabsschemaangular-schema-form

解决方案


推荐阅读