Valtimo List
The valtimo list is a component to make building lists faster and easier.
Setting up a simple list
To create a simple list that only display some data, add the following to a component's html
Next, in the controller, add the following code
This will create a simple list that shows the two items.
Clicking on rows
The (rowClicked)
property is used to add an action when the user clicks on a row
The property must be added with a reference to a method
The method must be defined in the component's controller
Adding actions
The [actions]
property is used to add clickable icons in the list
The property must be added with a reference to an array of actions
The actions are defined in the component's controller
Note the $event.stopPropagation()
, this stops any other click listeners from being triggered. Without this line the clickListener from the previous chapter would also run.
Last updated