Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.32 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.32 KB

Atom package Pane Item Control Helper

This package assign any element has class enable-pane-item-control-helper a special command to control the pane item which contains that element:

  • package-pane-item-control-helper:close-if-accepted for .enable-pane-item-control-helper.check-before-close
  • package-pane-item-control-helper:close for .enable-pane-item-control-helper.able-to-be-closed

Some packages which supports this package

Honestly, there's only one, not 'some' (Forever alone 😢)

So, if you want to list your package here, please request

How to supports this package in my package?

Assigning package-pane-item-control-helper:close-if-accepted to an element

  • The element must mark the query above
  • The element must have a method named getPaneItem which returns a Pane Item that should be considered to be close
  • The Pane Item which is return value of element.getPaneItem() must have a method named acceptToBeClosed that returns a boolean

Assigning package-pane-item-control-helper:close to an element

  • The element must mark the query above
  • The element must have a method named getPaneItem which returns a Pane Item that should be closed