I am currently developing a custom component that consists of a list of buttons.
Whenever a user clicks on a button, I modify its CSS class and then I want to add it to a custom property called "selectedItems" in order to retrieve it in my ViewModel.
However, when I try to push the button into the "selectedItems" array property, no event is triggered and I do not receive the information. I have also attempted to reset the entire array with no success.
I am unsure about how to proceed with this issue.
Below is the code for my component:
import {WrapLayout} from "ui/layouts/wrap-layout";
import {EventData} from "data/observable";
import {ValueButton} from "./value-button";
import dependencyObservableModule = require("ui/core/dependency-observable");
// Rest of the code continues as provided...
Could you provide some assistance?