Added description in methods On

This commit is contained in:
MaxOvs19
2023-01-31 14:50:03 +03:00
parent 63d5f0e35f
commit 784eb578fd
5 changed files with 17 additions and 9 deletions

View File

@ -915,6 +915,12 @@ export class CGSelect implements ICgSelect {
this.render(select);
}
/**
* @description Method for tracking the actions of the select, you can pass a callback
* @param state select state.
* @param callback
* @method on
*/
public on(state: string, callback: (state: any) => any) {
const options = this.element?.querySelectorAll('.list__item');