From 620f7821492c57c5a9a2d67d935d4545d8933ebd Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Fri, 30 Apr 2021 10:27:18 -0400 Subject: [PATCH] Document range `:values` --- lib/surface_site_web/live/data.ex | 2 +- lib/surface_site_web/live/properties.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/surface_site_web/live/data.ex b/lib/surface_site_web/live/data.ex index f9b3f25..81e20e5 100644 --- a/lib/surface_site_web/live/data.ex +++ b/lib/surface_site_web/live/data.ex @@ -45,7 +45,7 @@ defmodule SurfaceSiteWeb.Data do ### Supported options * `default` - defines a default value for the assign. - * `values` - the list of possible values for the assign. + * `values` - the list or range of possible values for the assign. In the following example, we create a simple `Counter` component that has its state defined by a single assign named `count`. You can use the `-` and `+` buttons to diff --git a/lib/surface_site_web/live/properties.ex b/lib/surface_site_web/live/properties.ex index f4332b4..82af43a 100644 --- a/lib/surface_site_web/live/properties.ex +++ b/lib/surface_site_web/live/properties.ex @@ -42,7 +42,7 @@ defmodule SurfaceSiteWeb.Properties do * `required` - declares the property as required. Default is `false`. * `default` - defines a default value for an optional property. - * `values` - the list of possible values for the property. + * `values` - the list or range of possible values for the property. * `accumulate` - instructs Surface to group all different values provided for that property into a single list. Default is `false`, i.e. only the last value is passed.