| 12345678910111213141516171819202122232425262728293031 |
- import { types } from "assets/types.js";
- class selector_item {
- #title;
- #icon;
- #action;
- constructor(title, icon, action) {
- types.check_string(title);
- types.check_string(icon);
- types.check_callback(action);
- this.#title = title;
- this.#icon = icon;
- this.#action = action;
- }
- get title() {
- return this.#title;
- }
- get icon() {
- return this.#icon;
- }
- get action() {
- return this.#action;
- }
- }
- export { selector_item };
|