Browse Source

fix typo (#2042)

fix typo
pull/2062/head^2
Artur Arseniev 7 years ago
committed by GitHub
parent
commit
7037e281ab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/dom_components/model/Component.js

6
src/dom_components/model/Component.js

@ -757,12 +757,12 @@ const Component = Backbone.Model.extend(Styleable).extend(
* @param {Options} opts Options for the add
* @return {Array} Array of added traits
* @example
* component.addTrat('title', { at: 1 }); // Add title trait (`at` option is the position index)
* component.addTrat({
* component.addTrait('title', { at: 1 }); // Add title trait (`at` option is the position index)
* component.addTrait({
* type: 'checkbox',
* name: 'disabled',
* });
* component.addTrat(['title', {...}, ...]);
* component.addTrait(['title', {...}, ...]);
*/
addTrait(trait, opts = {}) {
const { em } = this;

Loading…
Cancel
Save