# apostrophe-pieces (browser)
# Inherits from: apostrophe-doc-type-manager
The browser-side doc type manager for a type of piece. Provides jQuery event handlers for edit, rescue, create and version rollback based on data attributes that can appear anywhere, which is useful for contextual pieces.
# Methods
# globalLink(action, fn)
Globally link up clicks on data-apos-${action} where the piece type name is made properly attribute-name-friendly
# clickHandlers()
# manage()
# edit(_id, options)
options
object is merged with the options passed to the editor modal,
in particular you can pass a hint
to be displayed
at the top of the modal to provide context for why the edit operation
was undertaken
# create(options)
options
object is merged with the options passed to the editor modal,
in particular you can pass a hint
to be displayed
at the top of the modal to provide context for why the edit operation
was undertaken