Lightswitch HTML remove DOM element from screen RRS feed

  • Question

  • Is there any way to remove LS control, for example navigation back button from screen ? i have tried the 

    $('.msls-back-button').remove(); in created method  but it doesnt help. any ideas? 

    Wednesday, August 7, 2013 8:26 AM


  • The DOM isn't quite ready yet to do this in the _created method.

    You can:

    1. Provide a little delay by affixing a setTimeout function to the .remove(); about 500 ms should do it.

    2. Place the .remove() in one of the screen's _postRender methods, when the DOM can better handle it.

    • Proposed as answer by LittleBobbyTables Thursday, August 8, 2013 2:03 AM
    • Marked as answer by nerak_778 Tuesday, August 13, 2013 9:59 AM
    Thursday, August 8, 2013 2:02 AM