Files
Unify/application/user/edit/edit.user.select.option.js

20 lines
314 B
JavaScript
Raw Permalink Normal View History

2025-12-25 11:16:59 +01:00
import option from "/elements/option.js";
import user from "/user/user.js";
export default class customOption extends option, user{
setup() {
// use username as label
this.customElement.innerHTML = this.username.value;
// username as value
this.customElement.value = this.id;
}
}