Ios 定义表单组时忽略NativeScript RadDataForm角CSS样式
将RadDataForm表单字段与TKPropertyGroup元素分组时,将忽略CSS 我使用这个简单的CSS试图使iOS表单字段与Android表单字段显示相同,标签在顶部而不是左侧:Ios 定义表单组时忽略NativeScript RadDataForm角CSS样式,ios,css,angular,nativescript,styling,Ios,Css,Angular,Nativescript,Styling,将RadDataForm表单字段与TKPropertyGroup元素分组时,将忽略CSS 我使用这个简单的CSS试图使iOS表单字段与Android表单字段显示相同,标签在顶部而不是左侧: DataFormEditorLabel { position: top; background-color: pink; } 这在未分组的表单上效果很好,但是当使用TKPropertyGroup元素对字段进行分组时,CSS将被忽略 没有周围GridLayout的表单XML是: <Rad
DataFormEditorLabel {
position: top;
background-color: pink;
}
这在未分组的表单上效果很好,但是当使用TKPropertyGroup元素对字段进行分组时,CSS将被忽略
没有周围GridLayout的表单XML是:
<RadDataForm row="2" [source]="address">
<TKPropertyGroup tkDataFormGroups collapsible="true" name="Edit this address" collapsed="true">
<TKEntityProperty tkPropertyGroupProperties name="address" hintText="address" index="0">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="address2" index="1">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="city" index="2">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="state" index="3">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="postcode" index="4">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
<TKEntityProperty tkPropertyGroupProperties name="country" index="5">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
</TKPropertyGroup>
</RadDataForm>
是否有其他人遇到过此问题,或者我是否缺少使其正常工作所需的内容?作为CSS不适用于iOS的解决方案,我添加了TKPropertyEditorStyle子项以实现我的目标:
<RadDataForm row="2" [source]="address">
<TKPropertyGroup tkDataFormGroups collapsible="true" name="Edit this address" collapsed="false" hidden="false">
<TKEntityProperty tkPropertyGroupProperties name="address" hintText="address" index="0">
<TKPropertyEditor tkEntityPropertyEditor type="Text">
<TKPropertyEditorStyle tkPropertyEditorStyle labelPosition="Top"></TKPropertyEditorStyle>
</TKPropertyEditor>
</TKEntityProperty>
...
...
让我找到这个解决方法的信息位于“样式编辑器”下。看起来像是插件本身的bug,你可能想在中提出问题。谢谢@Manoj,我不知道反馈回复。我现在有一个解决办法,但会在那里提出一个问题。提出