framework icon indicating copy to clipboard operation
framework copied to clipboard

document Inputs.bind

Open Fil opened this issue 1 year ago • 1 comments
trafficstars

see https://talk.observablehq.com/t/how-to-use-div-to-customize-inputs-positions-in-framework/8948/6 and https://observablehq.observablehq.cloud/pangea/support/inputs-bind

Fil avatar Mar 19 '24 10:03 Fil

As mentioned in the forum post, it is demonstrated under inline expressions, and in some cases you can avoid the complexity of Inputs.bind by using inline expressions. As I wrote:

Inputs.form or Inputs.bind are in some ways workarounds for the restrictive nature of Observable notebooks where each cell can only display one thing and define one named value. In Observable Framework, code blocks can define and display as many things as you like, and using interpolated expressions, you can display content anywhere, not just at the top level.

mbostock avatar Mar 22 '24 16:03 mbostock