locked
Changing a font size on a postRender event RRS feed

  • Question

  • Hello,  Can somone tell me what I am doing wrong?  I am trying to change the font size of a local property using the postRender event.

    I have defined a local string property on my content page labeled "Instructions".  I changed the "Font Style" to "Large" in the properties pane but this did not change the size of the label when I compiled and viewed it in Chrome.  I then tried to make the size change using the postRender event.  Here is my code:

    myapp.AddNewAssociate.Instructions_postRender = function (element, contentItem) {
        $(element).css({
            "font-family": "Times New Roman",
            "font-style": "italic",
            "font-size": "120px"
        })
        
    };

    This also did not have any affect when viewed in Chrome.  What am I doing wrong?

    Tuesday, December 8, 2015 7:02 PM

Answers

  • Hi, please check this thread:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/766c6a09-17b1-4561-a693-9e691562cf93/label-font-size-in-html-client?forum=lightswitch


    • Edited by Nuno Dâmaso Tuesday, December 8, 2015 9:41 PM
    • Marked as answer by mountainDev Tuesday, December 22, 2015 7:55 PM
    Tuesday, December 8, 2015 9:40 PM

All replies

  • Hi, please check this thread:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/766c6a09-17b1-4561-a693-9e691562cf93/label-font-size-in-html-client?forum=lightswitch


    • Edited by Nuno Dâmaso Tuesday, December 8, 2015 9:41 PM
    • Marked as answer by mountainDev Tuesday, December 22, 2015 7:55 PM
    Tuesday, December 8, 2015 9:40 PM
  • Thank you for this.
    Tuesday, December 22, 2015 7:55 PM