Pulley icon indicating copy to clipboard operation
Pulley copied to clipboard

Pulley drawer content can lock all events programmatically?

Open willianB opened this issue 5 years ago • 8 comments

Hello. I am trying to block / unblock all events programmatically. How can I do it?

willianB avatar Mar 18 '19 21:03 willianB

What kind of events?

amyleecodes avatar Mar 18 '19 21:03 amyleecodes

What kind of events?

For example, events that allow expansion to collapse open. In a few words, the drawer content can not be expanded.

willianB avatar Mar 18 '19 21:03 willianB

Override the drawer delegate and return only 1 supported drawer position in the appropriate delegate. When changing what is returned there make sure and call the appropriate method to notify pulley that you updated the supported drawer positions.

amyleecodes avatar Mar 18 '19 21:03 amyleecodes

Will this work at runtime?

willianB avatar Mar 18 '19 21:03 willianB

Yes. It can be changed whenever you want as long as you call the method on Pulley to tell it that it changed.

amyleecodes avatar Mar 18 '19 21:03 amyleecodes

OK thank you for your time. I'll try

willianB avatar Mar 18 '19 21:03 willianB

Perfect, it worked correctly. Thank you very much, greetings from Colombia.

willianB avatar Mar 18 '19 22:03 willianB

how did you do the above. Kind of lost, trying to achieve the exact same thing.

Jemarlwecorp avatar Nov 07 '19 11:11 Jemarlwecorp