IPropertyPaneButtonProps interface

PropertyPane 按钮属性。

属性

ariaDescription

有利于屏幕读取器的按钮的详细说明。

除了复合按钮,其他按钮类型需要为屏幕阅读器提供更多信息。

ariaLabel

有利于屏幕读取器的按钮的 aria 标签。

buttonType

要呈现的按钮类型。 默认值为 ButtonType.normal。

description

该按钮执行的操作的说明。 仅用于复合按钮。

disabled

是否禁用该按钮。

icon

命令或 hero 类型中所显示的按钮图标。

onClick

单击按钮时调用的回调,采用绑定属性的现有值并返回新值,然后用于更新属性包。 此更新将导致重新呈现带有新属性的 PropertyPane。

text

元素的显示文本。

属性详细信息

ariaDescription

有利于屏幕读取器的按钮的详细说明。

除了复合按钮,其他按钮类型需要为屏幕阅读器提供更多信息。

ariaDescription?: string;

属性值

string

ariaLabel

有利于屏幕读取器的按钮的 aria 标签。

ariaLabel?: string;

属性值

string

buttonType

要呈现的按钮类型。 默认值为 ButtonType.normal。

buttonType?: PropertyPaneButtonType;

属性值

description

该按钮执行的操作的说明。 仅用于复合按钮。

description?: string;

属性值

string

disabled

是否禁用该按钮。

disabled?: boolean;

属性值

boolean

icon

命令或 hero 类型中所显示的按钮图标。

icon?: string;

属性值

string

onClick

单击按钮时调用的回调,采用绑定属性的现有值并返回新值,然后用于更新属性包。 此更新将导致重新呈现带有新属性的 PropertyPane。

onClick: (value: any) => any;

属性值

(value: any) => any

text

元素的显示文本。

text: string;

属性值

string