Desktop and UI Extensibility

Get Involved. Join the Conversation.

Topic

    Sathya Rajendran
    BUI: Show/Hide Image in Workspace extensionAnswered
    Topic posted September 25, 2018 by Sathya RajendranSilver Medal: 2,000+ Points 
    47 Views, 4 Comments
    Title:
    BUI: Show/Hide Image in Workspace extension
    Content:

    Hi All,

    Have created one workspace extension, in that based on the interface i have to show/Hide an image in workspace which i already added as image control.

    We have option to show/Hide fields only, Is there any option for Image control?

    Best Comment

    Sathya Rajendran

    Added image in CP and access it in BUI. Based on my condition i had show/Hide my images in workspace.

    Comment

     

    • Vlad

      I don't think you can show/hide images directly through the extensibility framework. You should be able to do one of the following:

      • fire a named event through the extensibility framework and create a workspace rule that hides the image when the named event fires
      • find the id/class of the image in HTML and show/hide that HTML element in JavaScript in the extension code
    • Edson Junior

      Well, you can try a different approach by using browse control instead. You can have only one brose control and pass the URL dynamically with BUI Framework, also you can call hide and show the browse control component.

      Thanks,
      Edson

      • Vlad

        I don't think you can show/hide the browser control from the extensibility framework, only fields. I may be wrong though. But you can set/unset the URL and maybe you can control its contents through that (load blank content when hiding it).

    • Sathya Rajendran

      Added image in CP and access it in BUI. Based on my condition i had show/Hide my images in workspace.