2 Replies Latest reply on Jan 18, 2018 1:17 PM by mfelton RSS
    mfelton Explorer

    How to create a custom renderer?

    What I want to achieve is to add a percentage (or any other unit) onto the end of a number.


    So for example in the Value Display Widget it displays a list of renderers to format the output. Can I add a custom one to this to achieve my goal?




      • Re: How to create a custom renderer?
        carlesc Heavyweight Champ

        Not with standard ValueDisplay or any other standard TW Widget.


        But you can "derive" ValueDisplay widget and create your own which has Units definition, to do this you will have to copy ValueDisplay code from TW server and create your own extension with a new name.


        Of course the other way around ( which we are using ) it's to put a label after the Value Display widget