Added description in methods On

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

No files matched your search

+6
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');