nativescript - NativeScript with angular 使用 RadDataForm 作为表单向导
问题描述
您好,我想使用 angular 8 的 nativescript 创建一个向导表单,我阅读了所有与 RadDataForm 相关的文档,并尝试使用组和自定义布局。但是,似乎这些组及其元素必须保持在同一页面上。我没有找到使组以类似向导的样式出现在多个页面上的示例。有人对此有什么想法吗?是否可以使用 RaDDataForm 创建多页表单向导?此外,当我创建表单时,我使用一些开关编辑器来表示布尔值,但标签的文本出现在组件的左侧,而不是顶部,占用了无法用于在同一行上正确布局其他开关的空间。我尝试使用编辑器样式将标签放在顶部,但它不起作用。我还尝试在应用程序中自定义 css。
看来这些设置可能不会在android上更改。
有人可以帮我吗?提前致谢
<TKEntityProperty tkPropertyGroupProperties name="retry" displayName="retry" index="0" columnIndex="0">
<TKPropertyEditor tkEntityPropertyEditor type="Switch">
<TKPropertyEditorStyle tkPropertyEditorStyle labelPosition="Top" backgroundColor="Red"></TKPropertyEditorStyle>
</TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="Immediate" displayName="Immediate" index="0" columnIndex="1">
<TKPropertyEditor tkEntityPropertyEditor type="Switch">
<TKPropertyEditorStyle tkPropertyEditorStyle labelPosition="Top" backgroundColor="Red"></TKPropertyEditorStyle>
</TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="preask" displayName="Preask" index="0" columnIndex="2">
<TKPropertyEditor tkEntityPropertyEditor type="Switch">
<TKPropertyEditorStyle tkPropertyEditorStyle labelPosition="Top" backgroundColor="Red"></TKPropertyEditorStyle>
</TKPropertyEditor>
</TKEntityProperty>
<PropertyEditor[name='Immediate'] {
font-weight: bold;
position:top;
background-color: red;
}
PropertyEditor[type='Switch'] {
font-weight: bold;
background-color: red;
}
解决方案
推荐阅读
- angular - Angular Elements 在一行上生成 HTML
- scroll - 在角度 6 中使用 ViewportScroller 中的 scrollToAnchor
- python - VGG 迁移学习 - 预测生成器显示与评估生成器不同的结果
- ruby-on-rails - Rails 5.2.1 Active Admin ActionView::Template::Error 从版本 4.2.6 升级 rails
- delphi - LoadFromStream 在 Delphi 5 中似乎不起作用
- python - 无法使用 Python 将数据写入 Excel 文件(多个选项卡)
- api - 在 Jest 中如何根据 API 调用响应动态生成测试
- sql - 如何从 postgresSQL 中的一行获取列数据?
- angular - 在 Angular 中处理捕获 HTTP 响应的锄头?
- javascript - angular-chart.js:在 Y 坐标相等的情况下相互显示线条(阶梯线图)