1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    33
    Vote Rating
    0
    r6174 is on a distinguished road

      0  

    Default disabling or hiding some buttons

    disabling or hiding some buttons


    Hi, i have a requirement in which some Authority levels plays a role..so for that i have to hide some buttons for some authorities and i have to show some buttons to them.for example let say 'A' can 'add' and 'delete' data but cannot edit so i have to show/enable 'add new' and 'delete' buttons and hide/disable 'edit' button similarly 'B' can only edit and cannot add and delete data so i have to show only 'edit' button and hide/disable 'add new' and 'delete' buttons .i have 7 authority levels distributed for each user , and their actions (like create,edit,delete...) are stored as 'true' or 'false'..how can i show and hide for all users

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    544
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      1  

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    33
    Vote Rating
    0
    r6174 is on a distinguished road

      0  

    Default


    Quote Originally Posted by willigogs View Post
    Thanks willigogs...i got done through adding "hidden: " property for all buttons based on the status(true/false) of each authority level

Thread Participants: 1

Tags for this Thread