Skip to content

Commit

Permalink
feat add id to columns
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobussacchini committed May 29, 2024
1 parent 9d53c50 commit bb97e19
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/services/JsonPlaceholderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ async function getUsers(

const users: UserT[] = await fetchUsers();


printer.writeColumns([
{
code: "id",
text: "Id",
},
{
code: "name",
text: "Nome",
Expand All @@ -106,6 +111,16 @@ async function getUsers(

printer.writeRow({
fields: {
id: {
name: "id",
tooltip: false,
smeupObject: {
tipo: "",
parametro: "",
codice: user.id.toString(),
testo: user.id.toString(),
},
},
name: {
name: "name",
tooltip: false,
Expand Down

0 comments on commit bb97e19

Please sign in to comment.