Announcement

Collapse
No announcement yet.

Disable all elements in a div based on status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable all elements in a div based on status

    Is it possible to disable all elements in a div and remove edit button based on the status in Quote entity? I know I can use pointer-events to disable a div. In Quote entity, I want to disable the div, ".col-md-8". I ran a code to determine if I'm able to access the div and the status in directory(client/modules/advanced/src/views/quote/record/item-list) in the setup function, and I was able to get access. But I am unable to disabled the div with
    Code:
    $(self).find("*").css({ 'pointer'events': 'none', opacity: 0.4});
    I want to disable to div and the edit button. I know inlineeditdisabled handles the access to edit any field without clicking the edit button, so I want to disable that as well.

  • #2
    yuri Is it possible to disable a div ("col-md-8") in Quote entity with pointer-events? If not, is there another way?

    Comment


    • #3
      issue resolved. i figured it out. i had to put the algorithm in afterrender function. not sure why i can't do it in setup function.

      Comment

      Working...
      X