Added description in methods On
This commit is contained in:
1 parent
63d5f0e35f
commit
784eb578fd
5 files changed
+17
-9
No files matched your search
@@ -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');
|
||||
|
||||
|
||||
Reference in new issue
Block a user