在SmartMessageBox输入类型中使用智能管理主题是选择,但如何添加带有值的选项

问题描述 投票:1回答:1

在SmartMessageBox中使用智能管理主题输入类型是选择,但如何添加带有值的选项?

$.SmartMessageBox({
        title: "AddLearningObject",
        content: "ObjectTypeText"",
        buttons: "["Cancel"] ["Next"]",
        input: "select",
        options: "[Video][Assessment][Link]"
    }, function (ButtonPress, Value) {

    }   })

选项由[视频] [评估] [链接]添加,但如何为它们添加值?

html themes smartadmin
1个回答
0
投票

您通过数据属性传递值...

$.SmartMessageBox({
    title: "AddLearningObject",
    content: "ObjectTypeText"",
    buttons: "["Cancel"] ["Next"]",
    input: "select",
    options: [$(this).data('value')] "[Video][Assessment][Link]"
}, function (ButtonPress, Value) {

}   })
© www.soinside.com 2019 - 2024. All rights reserved.