Search code examples
rubyuser-interfaceshoes

How to disable edit_line


I would like to disable a text input field (edit_line in Shoes) for user edition(grey field). I want to have possibility to e.g. set text but I dont want to give that possibility to users. I checked manual but there's nothing about that edit_line, only basics.


Solution

  • As answered in the comments session, to disable edit_line you need to pass a state option:
    edit_line(state: "disabled")