专栏名称: AT阿宝哥
15年IT互联网从业经验,专注产品方案,人才...
51好读  ›  专栏  ›  AT阿宝哥

《Axure官方文档译读》之0506:Selection Groups(选择组)

AT阿宝哥  · 简书  ·  · 2020-01-21 00:05

正文

Axure RP

Selection Groups

选择组

image

You can create a relationship between a group of shape, line, image, and/or dynamic panel widgets in which only one widget at a time can be set to its selected state with the Set Selected/Checked action. When a widget in the group is set to its selected state, all others are automatically deselected. (This is similar to the relationship between radio buttons in a radio group.)

您可以在一组形状、线条、图像和/或动态面板小部件之间创建关系,其中一次只能使用** set selected /Checked**操作将一个小部件设置为其选定状态。当组中的小部件设置为其选定状态时,其他所有小部件将自动取消选择。(这类似于单选组中的单选按钮之间的关系。)

Selection groups are handy for prototyping things like tab controls and accordion menus.

选择组对于创建标签控件和折叠式菜单之类的原型非常方便。

1、Creating Selection Groups

创建选择组

[图片上传失败...(image-c0c4b7-1578240748010)]

  1. Select one or more widgets on the canvas or in the Outline pane.
    在画布或 Outline 窗格中选择一个或多个小部件。

  2. In the More Properties menu in the Interactions pane, enter a name for the new selection group in the Selection Group field.
    在** interaction 窗格中的 More Properties 菜单中,在 选择组**字段中输入新选择组的名称。

  3. Add more shapes to the radio group by selecting them and choosing the selection group name in the Selection Group dropdown.
    通过选择它们并在 选择组 下拉列表中选择选择组名,向radio组添加更多形状。

  4. Remove a shape from the selection group by selecting it and clearing the Selection Group field's selection.
    通过选择形状并清除 选择组 字段的选择,从选择组中删除形状。

Note
提示
Removing all widgets from a selection group will delete the group.
从选择组中删除所有小部件将删除该组。

2、Setting a Widget to Its Selected State

将小部件设置为其选定状态

image

Adding widgets to a selection group is just the first step. To make use of the selection group, you'll need to create interactions that set the widgets to their selected states using the Set Selected/Checked action. A common example would be clicking a widget to select it, using the widget's Click or Tap event.







请到「今天看啥」查看全文