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.
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- Algorithm for maximizing coverage of rectangular a
Above answers are perfectly valid! But incase you want to toggle between enabled and disabled state after the edit_line object is created, you can use:
As answered in the comments session, to disable
edit_line
you need to pass astate
option:edit_line(state: "disabled")