Ajout de fonctions

* +Range.clear_content
* +Sheet.open_spreadsheet
* +Sheet.get_sheet_by_name
This commit is contained in:
Matthieu Dubuget 2018-06-29 22:11:14 +02:00
parent 0aa0743ed0
commit 7b4930cf0d
2 changed files with 6 additions and 2 deletions

View File

@ -116,7 +116,8 @@ sig
(** 'top', 'middle' or 'bottom'e *) (** 'top', 'middle' or 'bottom'e *)
val set_vertical_alignment: t -> align:string-> t [@@js.call] val set_vertical_alignment: t -> align:string-> t [@@js.call]
val set_number_format : t -> format: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 end
module SandboxMode : sig module SandboxMode : sig
@ -145,7 +146,10 @@ module Menu :
(** Access and modify spreadsheet sheets. *) (** Access and modify spreadsheet sheets. *)
module Sheet : module Sheet :
sig sig
type spreadsheet
val open_spreadsheet : File.t -> spreadsheet [@@js.global "SpreadsheetApp.open"]
type t 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_active_sheet : unit -> t [@@js.global "SpreadsheetApp.getActiveSheet"]
val get_last_row : t -> int [@@js.call] val get_last_row : t -> int [@@js.call]
val get_last_column : t -> int [@@js.call] val get_last_column : t -> int [@@js.call]

View File

@ -1,6 +1,6 @@
opam-version: "2.0" opam-version: "2.0"
name: "ocaml-google-apps" name: "ocaml-google-apps"
version: "0.2" version: "0.3"
synopsis: "OCaml binding to Google Apps" synopsis: "OCaml binding to Google Apps"
description: """ description: """
Binding to Google Apps using gen_js_api (https://github.com/LexiFi/gen_js_api): Binding to Google Apps using gen_js_api (https://github.com/LexiFi/gen_js_api):