ShowMenuForm?

Forums SPJS-Utility ShowMenuForm?

Viewing 4 reply threads
  • Author
    Posts
    • #35295
      Jonathan Stamper
      Participant

      I see there is a hideMenuForm but is there a show or unhideMenuForm. I’m interested in turning it off unless the user puts focus on a multi-lined text field.

    • #35298
      Alexander Bautz
      Keymaster

      I’m not sure what function you are referring to (I cannot find this function in spjs.utility) – what kind of functionality are you looking for?

      Alexander

      • #35302
        Jonathan Stamper
        Participant

        Sorry! I probably should have posted this on the DFFS forum but:

        spjs.dffs.hideFormMenu

    • #35304
      Alexander Bautz
      Keymaster

      This function is only used internally to hide the ribbon so I didn’t add any function to toggle it visible again, but you can use something like this:

      spjs.dffs.showFormMenu = function() {
          var rh = jQspjs("#s4-ribbonrow").height();
          var wh = jQspjs("#s4-workspace").height();
          jQspjs("#s4-ribbonrow").show();
          jQspjs("#s4-workspace").css("height", (wh - rh) + "px");
      }

      Alexander

    • #35310
      Jonathan Stamper
      Participant

      This appears to work but I can’t seem to get it to toggle. I’m trying to only make it visible when clicking in multi-lined fields. I’m thinking focus and blur would work but those don’t seem to perform correctly. Click works but continually clicking removes more and more of the form content due to the width and height adjustments.

    • #35319
      Alexander Bautz
      Keymaster

      You can change this:

      var rh = jQspjs("#s4-ribbonrow").height();

      to this:

      var rh = 126; // Adjust if this is not the actual height of your banner

      and see if that keeps the height of the form consistent.

      Alexander

Viewing 4 reply threads
  • You must be logged in to reply to this topic.