【发布时间】:2016-04-26 03:40:20
【问题描述】:
我在我的 Windows 10 UWP winjs 应用程序中创建了一个工具栏,我想禁用一些按钮。
我像这样将属性附加到按钮:
new WinJS.UI.Command(null, {
disable: true,
id: 'cmdSave',
label: 'save',
section: 'primary',
type: 'button',
icon: 'save',
onclick: clickbuttonprintout()
});
我查看了 winjs css 文件,发现了许多禁用的标签。是否可以像我在上面附加其他属性一样将按钮设置为禁用?
【问题讨论】:
标签: javascript jquery css uwp winjs