Skip to content

How to access values from bound Inputs? #1810

Answered by Fil
aaronkyle asked this question in Q&A
Discussion options

You must be logged in to vote

You probably have to use a view or Generators.input on commitmentDateRange_SOC to define your reactive value.

Something like:

${commitmentDateRange_SOC}

${select_date}

${date}


```js echo
const commitmentDateRange_SOC = Inputs.range([commitment_range_start, commitment_range_end],
{
  label: "Adjust Date",
  value: new Date(),
  step: 24 * 60 * 60 * 1000 // Set step to 1 day in milliseconds
});

const select_date = Inputs.bind(Inputs.date({
  label: "Select Date",
  min: commitment_range_start,
  max: commitment_range_end
}), commitmentDateRange_SOC);

const date = Generators.input(commitmentDateRange_SOC);
```

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aaronkyle
Comment options

Answer selected by aaronkyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants