如何显示可以切换的项目(UI)

发布于 2024-07-16 05:24:45 字数 367 浏览 7 评论 0原文

假设我有一些用户可以切换的状态,例如 [ON] | [关闭]

通常,我使用一个开关(按钮),当开关处于ON状态时,用户会看到:

LIGHT IS [ON]

当它OFF<时/strong> 他们看到

灯是[关闭]

我的问题是:显然(明智的)应该单击[ON] 来将灯[关闭]

你怎么做呢? 任何想法或想法表示赞赏。

Say I have some state which the user can toggle, for example [ON] | [OFF] .

Typically, I use ONE switch (BUTTON) and when the thing is ON, the user sees:

LIGHT IS [ON]

When it is OFF they see

LIGHT IS [OFF]

My question is: is it obvious (sensible) that one should click [ON] to turn the light [OFF]?

How do you do it? Any thoughts or ideas appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一笔一画续写前缘 2024-07-23 05:24:45

我会使用标签和按钮来显示操作。

灯已打开 - 关闭?

单击该按钮会将标签和按钮更改为:

灯已关闭 - 打开?

此解决方案清楚地说明了状态和可用的操作。

I would use a label and an button to show the action.

Light is On - Switch Off?

Clicking that would change both the label and the button to:

Light is Off - Switch On?

This solution clearly states the status and the action available.

吻泪 2024-07-23 05:24:45

如果您关心清晰度,我肯定会包含类似复选框的控件的概念。 这是一个被广泛接受的界面组件,大多数人都能理解。

在任何情况下,您都可以使整行可单击,以便当我单击文本时它也会切换(就像 HTML 标签元素一样)。

仅显示文本“ON”的按钮可能会让用户感到困惑,无论它是打开灯还是当前状态为“on”。

I would definitely include the notion of a checkbox-like control if clarity is your concern. This is a widely accepted interface component, that most people understand.

In any case you can make the entire line clickable, so that it toggles when I click the text as well (just like an HTML Label element).

Showing a button with just the text 'ON' might confuse users whether it toggles the light on, or if the current state is 'on'.

辞别 2024-07-23 05:24:45

一图胜千言...

根据应用程序的类型,显示您可以单击的电灯开关图像
设置字段的状态可能更直观?

然后,您可以使用灯泡打开和灯泡关闭的图像来显示状态。

并不是每个人都知道复选框是什么;)

An image speaks a thousand words...

Depending on the type of application, displaying a light switch image that you can click
to set the state of the field might be more intuitive?

You could then have a lightbulb-on and lightbulb-off image to show state.

Not everyone knows what a checkbox is ;)

自控 2024-07-23 05:24:45

您可以使用单选框,这是相当标准的控件,不应让大多数人感到困惑。

<input type="radio">Light on<br>
<input type="radio">Light off

另一种选择是尝试实现某种开关按钮,类似于 iPhone 上使用的按钮:

iPhone 中的切换按钮 - 关闭 http://www.poolworksbvi.com/POOL_CONTROL/Pool1_files/iphone_switch.png

iPhone 上的切换按钮 - 在 http://www.poolworksbvi.com/POOL_CONTROL/Pool1_files/iphone_switch+on%20copy.png

You could use radio boxes, which are fairly standard controls and should not be confusing to most people.

<input type="radio">Light on<br>
<input type="radio">Light off

Another option is to try and implement some sort of switch button, something like this one that is used on the iPhone:

Switch button in iPhone - off http://www.poolworksbvi.com/POOL_CONTROL/Pool1_files/iphone_switch.png

Switch button on iPhone - on http://www.poolworksbvi.com/POOL_CONTROL/Pool1_files/iphone_switch+on%20copy.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文