我喜欢根据动态用户输入过滤数据。下面提到的示例代码是可执行的,但是,目前它没有过滤数据的逻辑。因此,无论选择什么变量,表都不会改变。
代码主要有三个组件: 1.前几行代码创建一个数据框架,其中信息可用于动态创建控件小部件;2. ui代码;3. server当前具有动态创建控件小部件的逻辑,我需要弄清楚如何使用动态创建的控件小部件和筛选数据(用于不同目的)。我不知道如何跟踪变量的数量和过滤的范围。非常感谢你的建议。
## Create a data frame of which information is used in creating (dynamical) control widgets
下面是aui:输入
<aui:input name="price" id="price" showRequiredLabel="false" value="">
<aui:validator>
// I have some custom validator for price format
</aui:validator>
</aui:input>
我有一个单选按钮组。在单击其中一个单选按钮时,我希望动态应用所需的aui验证器。我试着从js添加required=tru
我第一次使用开源的TestCafe。我有3个需要在fixture中使用的JS动态变量,但是我不知道如何输入它们,因为变量的名称发生了变化。
//I have this code, the 3 variables below are dynamic and I do not know how to
//define them for the test to work
import { Selector } from 'testcafe';
fixture `Getting Started`;
.page `http://mypage/exampl