Announcement

Collapse
No announcement yet.

Bridge.Console

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Bridge.Console

    Hi Bridge team,

    Maybe I am missing something... , but I cant figure out how to hide the bridge-body-wrapper?

    In Bridge version 15.3 there is a new Console window inside the Document.Body ?

    From bridge.js:

    Bridge.define("Bridge.Console", {
    statics: {
    BODY_WRAPPER_ID: "bridge-body-wrapper",
    CONSOLE_MESSAGES_ID: "bridge-console-messages",

    How can I hide it? I don't see any Hide() function in cs on the Console class.

    If I now put an element like this: Document.Body.AppendChild(myNode);
    And then later I do: Document.Body.RemoveChild(myNode) I got an error saying mynode is not a child?

    Thank you,

    Guido


    #2
    The body wrapper div is only added if Console.WriteLine is called.

    The following code demonstrates how to call .Hide() on Bridge.Console.

    http://deck.net/cecc260c03d526012d2e60359d093381

    public class Program
    {
        public static void Main()
        {
            System.Console.WriteLine("Hello World!");
            
            Bridge.Utils.Console.Hide();
        }
    }
    Hope this helps.

    Comment

    Working...
    X