Ver código fonte

Added documentation for StickyToolbarModel.

Aleksander Nowodzinski 9 anos atrás
pai
commit
ea7488b7c7
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16 0
      packages/ckeditor5-ui/src/bindings/stickytoolbar.js

+ 16 - 0
packages/ckeditor5-ui/src/bindings/stickytoolbar.js

@@ -28,3 +28,19 @@ export default class StickyToolbar extends Toolbar {
 		model.bind( 'isActive' ).to( editor.editables, 'current', c => !!c );
 	}
 }
+
+/**
+ * The basic sticky toolbar model interface.
+ *
+ * @memberOf ui.stickyToolbar
+ * @interface StickyToolbarModel
+ */
+
+/**
+ * Indicates whether the toolbar should be active. When any editable
+ * is focused in the editor, toolbar becomes active.
+ *
+ * @readonly
+ * @observable
+ * @member {Boolean} ui.button.StickyToolbarModel#isActive
+ */