Custom Views - Disable Inline Edit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickh
    Member
    • Jun 2018
    • 67

    Custom Views - Disable Inline Edit


    I can hide the edit button as follows:
    this.$el.find('button[data-action="edit"]').addClass('hidden');
    this.$el.find('button[data-action="edit"]').remove();​

    Is there a way to disable in-line edit as well?​
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    There's no method to disable inline edit dynamically.

    You can disable it for a field in metadata with the parameter inlineEditDisabled or call setFieldReadOnly.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • nickh
      Member
      • Jun 2018
      • 67

      #3
      Many thanks Yuri
      I will have to seek an alternative to achieve my goal.

      Comment

      Working...