Fixed naming

This commit is contained in:
MaxOvs 2023-01-09 18:01:31 +03:00
parent 2ed0e306e5
commit aab59fd243
2 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,9 @@
import { ICreateBreadCrumb } from './components/create-element/create-element.interface';
import {
CreateBreadCrumb,
createBreadCrumb,
createNativeSelect,
createNativeSelectOption,
} from './components/create-element/create-elementTs';
import { IDataItem, ITextSelect } from './components/utils/urils.interface';
import { ICreateBreadCrumb } from './components/create-element/create-element.interface';
import {
createSelected,
@ -14,9 +12,11 @@ import {
nativeOptionMultiple,
nativeOptionOrdinary,
} from './components/utils/utilsTs';
import { IDataItem, ITextSelect } from './components/utils/urils.interface';
import { ICgSelect } from './interfaces/cg-select.interface';
import { IItems } from './interfaces/items.interface';
import './main.scss';
export class CGSelect implements ICgSelect {
@ -337,7 +337,7 @@ export class CGSelect implements ICgSelect {
this.selectedItems.push(item.title);
select!.appendChild(ulMultipul);
ulMultipul.appendChild(
CreateBreadCrumb(dataBreadCrumb, item.title, index, item.id),
createBreadCrumb(dataBreadCrumb, item.title, index, item.id),
);
}
} else {

View File

@ -32,7 +32,7 @@ export function createNativeSelectOption(): HTMLOptionElement {
* @param {string} id уникальное id выбранного элемента
* @returns {HTMLElement} возвращает сформированный HTMLElement chips item
*/
export function CreateBreadCrumb(
export function createBreadCrumb(
data: ICreateBreadCrumb,
title: string,
index: number,