LS HTML客户端控件可见吗? [英] LS HTML Client Control Visible?

查看:70
本文介绍了LS HTML客户端控件可见吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS2012.2 LightSwitch HTML客户端

VS2012.2 LightSwitch HTML Client

我需要根据用户更改选项来有条件地显示一些控件.

I need to make some controls visible conditionally based on the user changing the options.

说用户选择HasStudentLoans为true..我需要显示包含这些问题的Groupbox.

Say the user selects HasStudentLoans to true.. I need to show the Groupbox that contains those questions.

我在MVC应用程序中为此使用了KnockOutJs,但是随后我正在编写HTML.
(LS名称控件如何?)

I've used KnockOutJs for this in MVC application but then I'm writing the HTML.
(How does LS name controls??)

如何将控件的可见属性绑定到同一页面上的另一个控件?

How can I bind the visible property of a control to another control on the same page?

谢谢

Pat Tormey PE MVP,美国新罕布什尔州客户应用开发人员

Pat Tormey PE MVP, Client App Dev, NH USA

推荐答案

LightSwitch HTML方式如下所示:

screen.findContentItem("OrderDate").isVisible = false;

...其中"OrderDate"是您要隐藏的字段.

... where 'OrderDate' is the field you want to hide.

欢呼


这篇关于LS HTML客户端控件可见吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆