Browse Source

Up jsdoc

pull/4957/head
Artur Arseniev 3 years ago
parent
commit
c7b6069827
  1. 15
      src/dom_components/model/Component.ts

15
src/dom_components/model/Component.ts

@ -1440,17 +1440,12 @@ export default class Component extends StyleableModel<ComponentProperties> {
}
/**
* Get the name of the component
* @return {String}
* Get the name of the component.
* @param {Object} [opts={}] Options
* @param {Boolean} [opts.noCustom] Avoid custom name assigned to the component.
* @returns {String}
* */
getName(
opts: {
/**
* Avoid custom name assigned to the component.
*/
noCustom?: boolean;
} = {}
) {
getName(opts: { noCustom?: boolean } = {}) {
const { em } = this;
const { type, tagName, name } = this.attributes;
const defName = type || tagName;

Loading…
Cancel
Save