From 62f15d7888cd3b3589e5d1b5376623b4071afb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Wed, 20 Oct 2021 12:37:39 +0200 Subject: [PATCH] =?UTF-8?q?Adaptation=20suite=20changement=20du=20nom=20de?= =?UTF-8?q?=20la=20m=C3=A9thode=20cr=C3=A9ant=20la=20liste=20des=20options?= =?UTF-8?q?=20de=20pagination.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exampleWithCSV.ts | 2 +- src/exampleWithHTML.ts | 8 ++++---- src/exampleWithJSON.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/exampleWithCSV.ts b/src/exampleWithCSV.ts index 2335015..4126737 100644 --- a/src/exampleWithCSV.ts +++ b/src/exampleWithCSV.ts @@ -53,7 +53,7 @@ const initialise = async () => pagination.options={ displayElement: { id:"paginationOptions" }, values: [10,20,50,500] , name: "Choix de pagination :" }; pagination.selectedValue=10; converter.pagination=pagination; - pagination.rend2HTML(); + pagination.options2HTML(); // Affichage initial converter.datasCounter={ id:"compteur" }; diff --git a/src/exampleWithHTML.ts b/src/exampleWithHTML.ts index b8ba141..ebecd47 100644 --- a/src/exampleWithHTML.ts +++ b/src/exampleWithHTML.ts @@ -32,11 +32,11 @@ const initialise = async () => // Configuration de la pagination const pagination=new Pagination(converter, { id:"pages" }, "Page à afficher :"); - pagination.options={ displayElement: { id:"paginationOptions" }, values: [15,30,50,100] , name: "Nombre de lignes par page :" }; - pagination.selectedValue=15; + pagination.options={ displayElement: { id:"paginationOptions" }, values: [15,30,50] , name: "Nombre de lignes par page :" }; + pagination.selectedValue=30; converter.pagination=pagination; - pagination.rend2HTML(); - + pagination.options2HTML(); + // Affichage initial converter.datasCounter={ id:"compteur" }; await converter.run(); diff --git a/src/exampleWithJSON.ts b/src/exampleWithJSON.ts index e1a6d00..58484fa 100644 --- a/src/exampleWithJSON.ts +++ b/src/exampleWithJSON.ts @@ -36,7 +36,7 @@ const initialise = async () => pagination.options={ displayElement: { id:"paginationOptions" }, values: [15,30,50,100] , name: "Nombre de lignes par page :" }; pagination.selectedValue=15; converter.pagination=pagination; - pagination.rend2HTML(); + pagination.options2HTML(); // Affichage initial converter.datasCounter={ id:"compteur" };