Search code examples
getorgchart

Permissions (Add/Delete but not Edit)


I know that in order to allow editing of the whole widget you use attribute enableEdit=true (or false to disable) , but how can I disable "editing" of nodes but allow add/delete only?

Thank you, George


Solution

  • A work-around , although I believe not the best way but it will do the trick until this is served as an option into the api.

    <style>
          /* use a CSS selector */
          [data-btn-action="edit"] { display:none !important; }
    </style>
    

    Similarly for 'add' and 'del'. Hope this helps others too.

    George