diff --git a/README.md b/README.md index 679de04..a7e0341 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,8 @@ After you have initialized the component, use it everywhere you want in your app dash="60 0.9" animation="reverse 700 400" :noData="false" - :loading="false" + :loading="false" + :loader="{ color: 'green' }" fontColor="white" :half="false" :gap="10" @@ -115,6 +116,7 @@ This table below provides a quick overview over all available options. To gain m | **[`legendFormatter`](#legendformatter)** [![npm](https://img.shields.io/badge/v1.3.0-blue?style=flat-square)](#legendformatter) | Function | Function that returns formatted value | | | **[`animation`](#animation)** | String | "default \| rs \| loop \| reverse \| bounce [duration delay]" | "default 1000 400"| | **[`loading`](#loading)** | Boolean | |false| +| **[`loader`](#loading)** | Object | { [thickness, color, lineMode, line, opacity ]} | | | **[`determinate`](#determinate)** | Boolean | |false| | **[`noData`](#nodata)** | Boolean | |false| | **[`angle`](#angle)** | Number | any Number |-90| @@ -406,6 +408,21 @@ Forces loading state. The component provides an indeterminate loading state for
+- ### `loader` + +With this option defined as Object you can customize the loading circle that is shown in the states +[loading](#loading) and [determinate](#determinate). Accepted properties are [`color`](#color), [`thickness`](#thickness), [`line`](#line), +[`lineMode`](#linemode) and `opactity`. `opacity` is specific for loading circle and can be any valid CSS opacity value. If the option is not specified, the loading circle replicates the progress circle with a 0.55 default value for `opacity`. + +###### Example: :scroll: + +```vue + + +``` + +
+ - ### `determinate` Provides a determinate loading state that indicates that your data loading is still in progress but allows to show the **[`progress`](#progress)**. diff --git a/package.json b/package.json index 711431c..c46967d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-ellipse-progress", - "version": "2.0.0-alpha.2", + "version": "2.0.0-alpha.3", "private": false, "description": "A Vue.js component to create beautiful animated circular progress bars", "main": "./dist/vue-ellipse-progress.umd.min.js", diff --git a/src/App.vue b/src/App.vue index cb627ce..055cae6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,6 +48,7 @@ :thickness="20" :empty-thickness="10" dot="10 red" + :loader="{ thickness: 40, color: 'red' }" line-mode="bottom" :no-data="noData" :determinate="determinate" @@ -73,6 +74,7 @@ line-mode="out 20" :no-data="noData" :determinate="determinate" + :loader="{ thickness: 40, color: 'red' }" >