From d6d28cf4294e0b62fbe87e5becca81433f8ba459 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 6 Aug 2019 09:23:14 +0200 Subject: [PATCH] [docs] Methods section --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 149e07d..2550a2e 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ JustGage is a handy JavaScript plugin for generating and animating nice & cl - [Options](#Options) - [Custom Sectors](#Custom-Sectors) - [Pointer options](#Pointer-options) + - [Methods](#Methods) + - [Refresh](#Refresh) + - [Destroy](#Destroy) - [Demo](#Demo) - [Examples](#Examples) - [Changelog](#Changelog) @@ -169,6 +172,23 @@ pointerOptions: { } ``` +## Methods + +### Refresh + +Used to refresh Gauge value and max value + +`refresh(val, max)` + +- `val` : The Gauge value (required) +- `max` : The Gauge Max value (optional) + +### Destroy + +Used to destroy the Gauge element + +`destroy()` + ## Demo Click [here](https://justgage.com/) to see a demo