Styling Switch Editor label

2 posts, 0 answers
  1. Michael
    Michael avatar
    7 posts
    Member since:
    Dec 2016

    Posted 15 Dec 2016 Link to this post

    Hello,

    Styling the label of TKPropertyEditor of type Switch is not working while using this properties :

    labelTextColor, labelTextSize, labelFontName and labelFontStyle

     

    Whereas all others styling properties works good

  2. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    100 posts

    Posted 20 Dec 2016 Link to this post

    Hi Michael,

    We have tested the styling for property editor of type Switch and at our side, everything seems to work as expected. Here is the sample code we used to confirm that the styling is applied for label related styles.

    <TKEntityProperty tkDataFormProperty name="agreeTerms" displayName="I Agree with Terms" index="9">
        <TKPropertyEditor tkEntityPropertyEditor type="Switch">
            <TKPropertyEditorStyle tkPropertyEditorStyle strokeColor="#6A1B9A" strokeWidth="2" fillColor="#E040FB" labelHidden="false" labelTextSize="18" ios:labelFontName="Times New Roman" android:labelFontName="sans-serif-light" labelFontStyle="Italic"  labelTextColor="red">
            </TKPropertyEditorStyle>
        </TKPropertyEditor>
    </TKEntityProperty>

    The snippet above can be tested and verified with a little modification of this example.
    Please let me know if you need further assistance or if your case is behaving differently than the expected.

    Regards,
    Nikolay Iliev
    Telerik by Progress
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top