gpt4 book ai didi

ios - 如何在 iOS 上编辑 NativeScript-Angular RadDataForm UIStepper?

转载 作者:行者123 更新时间:2023-11-29 05:45:08 26 4
gpt4 key购买 nike

NativeScript-Angular 应用程序中,我尝试设置 RadDataForms TKPropertyEditor 的样式。对于 iOS 上的步进编辑器,我想增加控件和显示值之间的距离,但我找不到访问它们的方法。

我正在使用nativescript-ui-dataform:4.0.0

<TKEntityProperty tkDataFormProperty name="grade" 
displayName="Bewertung (1 – 10)" index="1">
<TKPropertyEditor tkEntityPropertyEditor type="Stepper">
<TKPropertyEditorParams tKEditorParams minimum="1" maximum="10"
step="1"></TKPropertyEditorParams>
<TKPropertyEditorStyle tkPropertyEditorStyle valuePosition="Left">
</TKPropertyEditorStyle>
</TKPropertyEditor>
</TKEntityProperty>

最佳答案

引用高级样式examples here ,您可以直接修改原生对象来设置元素的样式。

 public editorSetupStepperIOS(editor) {
editor.valueLabel.textColor = colorDark.ios;

const coreEditor = <UIStepper>editor.editor;
coreEditor.tintColor = colorLight.ios;

for (let i = 0; i < coreEditor.subviews.count; i++) {
if (coreEditor.subviews[i] instanceof UIButton) {
(<UIButton>coreEditor.subviews[i]).imageView.tintColor = colorDark.ios;
}
}
const editorView = editor.editorCore;
editorView.labelAlignment = TKGridLayoutAlignment.Left;
}

关于ios - 如何在 iOS 上编辑 NativeScript-Angular RadDataForm UIStepper?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56222066/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com