-
Can I re-use / multiple an Input in Framework, such that changes in one place will sync across all (as is done in notebooks using Inputs.bind : https://observablehq.com/@observablehq/synchronized-inputs)? When I try to first define a view and then use it many times, it will only appear one place in the DOM: const analysis_borrower_ps7_applicability = Inputs.textarea({placeholder: "Borrower PS7 Applicability", label: "Borrower Analysis of PS7 Applicability", width : "300px", placeholder : "{Borrower PS Applicability Statement}"}) view(analysis_borrower_ps7_applicability) view(analysis_borrower_ps7_applicability) ... I see that there's a reference to Trying this (adapted from the notebook example): const i = view(Inputs.input(42)) Inputs.bind(Inputs.range([0, 100]), i) Inputs.bind(Inputs.range([0, 100]), i) ... results in : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, Pangea! Thanks @Fil ! https://observablehq.observablehq.cloud/pangea/support/inputs-bind |
Beta Was this translation helpful? Give feedback.
Ah, Pangea! Thanks @Fil ! https://observablehq.observablehq.cloud/pangea/support/inputs-bind