Przeglądaj źródła

Extended docs of ui.TemplateValueSchema.

Aleksander Nowodzinski 9 lat temu
rodzic
commit
813483a619
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      packages/ckeditor5-ui/src/template.js

+ 7 - 0
packages/ckeditor5-ui/src/template.js

@@ -985,6 +985,7 @@ function extendTemplateDefinition( def, extDef ) {
  *			attributes: {
  *			attributes: {
  *				class: {@link ui.TemplateValueSchema},
  *				class: {@link ui.TemplateValueSchema},
  *				id: {@link ui.TemplateValueSchema},
  *				id: {@link ui.TemplateValueSchema},
+ *				style: {@link ui.TemplateValueSchema}
  *				...
  *				...
  *			},
  *			},
  *			on: {
  *			on: {
@@ -1032,6 +1033,12 @@ function extendTemplateDefinition( def, extDef ) {
  *						bind.if( 'baz', 'value-when-true' )
  *						bind.if( 'baz', 'value-when-true' )
  *						'static-text'
  *						'static-text'
  *					]
  *					]
+ *				},
+ *
+ *				// Object literal schema, specific for styles.
+ *				style: {
+ *					color: 'red',
+ *					backgroundColor: bind.to( 'qux', () => { ... } )
  *				}
  *				}
  *			}
  *			}
  *		} );
  *		} );