From 7b4930cf0de9c21bad5647c18a12a20f1e98cb9b Mon Sep 17 00:00:00 2001 From: Matthieu Dubuget Date: Fri, 29 Jun 2018 22:11:14 +0200 Subject: [PATCH] Ajout de fonctions * +Range.clear_content * +Sheet.open_spreadsheet * +Sheet.get_sheet_by_name --- googleApps.mli | 6 +++++- ocaml-google-apps.opam | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/googleApps.mli b/googleApps.mli index c044cee..e7cd9ef 100644 --- a/googleApps.mli +++ b/googleApps.mli @@ -116,7 +116,8 @@ sig (** 'top', 'middle' or 'bottom'e *) val set_vertical_alignment: t -> align:string-> t [@@js.call] val set_number_format : t -> format:string -> t [@@js.call] - val clear_format: t -> t [@@js.call] + val clear_format: t -> t [@@js.call] + val clear_content: t -> t [@@js.call] end module SandboxMode : sig @@ -145,7 +146,10 @@ module Menu : (** Access and modify spreadsheet sheets. *) module Sheet : sig + type spreadsheet + val open_spreadsheet : File.t -> spreadsheet [@@js.global "SpreadsheetApp.open"] type t + val get_sheet_by_name : spreadsheet -> name:string -> t [@@js.call] val get_active_sheet : unit -> t [@@js.global "SpreadsheetApp.getActiveSheet"] val get_last_row : t -> int [@@js.call] val get_last_column : t -> int [@@js.call] diff --git a/ocaml-google-apps.opam b/ocaml-google-apps.opam index 18e00e6..6264e09 100644 --- a/ocaml-google-apps.opam +++ b/ocaml-google-apps.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "ocaml-google-apps" -version: "0.2" +version: "0.3" synopsis: "OCaml binding to Google Apps" description: """ Binding to Google Apps using gen_js_api (https://github.com/LexiFi/gen_js_api):