8
0
Quellcode durchsuchen

Added documentation for StickyToolbarModel.

Aleksander Nowodzinski vor 9 Jahren
Ursprung
Commit
ea7488b7c7
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  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
+ */