Skip to content

Commit 622c704

Browse files
Dan range group default edit (#1008)
1 parent 554a1f7 commit 622c704

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pgml-dashboard/src/components/inputs/range_group/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl RangeGroup {
2020
pub fn new(title: &str) -> RangeGroup {
2121
RangeGroup {
2222
title: title.to_owned(),
23-
identifier: title.replace(" ", "_"),
23+
identifier: title.replace(" ", "_").to_lowercase(),
2424
min: 0,
2525
max: 100,
2626
step: 1.0,

pgml-dashboard/templates/content/playground.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ <h3 class="h3">Inputs</h3>
102102
<div class="my-5">
103103
<%+ RangeGroup::new("Input 1")
104104
.initial_value(4.0)
105-
.identifier("my_test_input")
106105
.bounds(2, 38, 2.0)
107106
.units("T") %>
108107
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy