bildwelt
E2E FORUM
E2E Bridge E2E Commerce

How can a UI element be hidden from a certain user group?

E2E Forum User Interfaces How can a UI element be hidden from a certain user group?

This topic contains 1 reply, has 1 voice, and was last updated by  Jürgen 3 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #730

    Jürgen
    Moderator

    This can be achieved using a conditional script call. UI_Authentication.xml
    within the E2E Examples shows how a possible implementation: The controller
    operation “showHideElements” is called upon Entry of the “View Comments”
    state, and hides a button depending on the booelan controller atrribute
    “isAdminRole”. The script to do this is:

    if (this.isAdminRole == false) {$(“#addButton”).hide();}

    #849

    Jürgen
    Moderator

    Addon for IE9:

    If in the user settings the IE Compatibiltiy mode is set, the show/hide does not work.

    To overrule this user-setting set the browser version explicitly in the Meta-Tag:

    <meta http-equiv=”X-UA-Compatible” content=”IE=9″>

    Then it works independently from the user settings.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.