Valtimo Carbon List
Valtimo Carbon List
The valtimo-carbon-list
is a component to make building lists faster and easier.
There are a few options for defining lists, besides the Simple List defined below:
Setting up a simple list
To use the CarbonListComponent there is a series of steps.
Import the CarbonListModule into your module:
sample.module.ts
Add the
valtimo-carbon-list
tag in your template (this example displays a simple list):sample.component.html
Define your attributes in the component code:
sample.component.ts
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
sample.component.html
The method must be defined in the component
sample.component.ts
No results view
However, the no results view can be customized like this:
sample.component.html
Overview of the @Input
and @Output
fields of the CarbonListComponent
@Input
and @Output
fields of the CarbonListComponent
Inputs
Outputs
Last updated