Fabian Iwand
Fabian Iwand
Fixes non-wrapping widget labels bleeding into other elements. **Before / after:** **Before / after:** Test snippet: ```js (label => Inputs.form([ Inputs.text({label}), Inputs.toggle({label}), Inputs.select([], {label}), Inputs.range([], {label}), Inputs.number([], {label}), Inputs.button('OK', {label}),...
In Inputs.table the row height that is used as basis for height calculations is [hardcoded to 22px](https://github.com/observablehq/inputs/blob/86fa5c0b529c32cd83fccdf9b6b80ffe3bf015c0/src/table.js#L9). If the actual rows deviate from this height, the overall height estimate won't...
The Table input presently supports four column related options: 1. `columns`, indicating which columns should be displayed, and in which order 2. `width`, defining either a global width or per-column...
A Table input's current sort order is only tracked internally. This poses a problem if a notebook author wants to persist the current sort state, e.g. via a permalink. **Suggested...
In Inputs.button(), `` elements are currently siblings of the `` element:  This makes it close to impossible to wrap multiple buttons without having them flow below the label: ...
Checkbox and Radio are currently the only widgets without support for a custom width. In the context of these widgets, `width` would define the max width at which input/label pairs...
Create the following cells: ```js data = [{name: "foo"}, {name: "bar"}] ``` ```js viewof table = Inputs.table(data, {multiple: false}) ``` ```js { viewof table.value = data[0]; viewof table.dispatchEvent(new Event('input')); }...
The CSS namespace placeholder `__ns__` is currently replaced [via rollup](https://github.com/observablehq/inputs/blob/fac7439b463e0d3fdba9f633f6ec2d6259a99d41/rollup.config.js#L67), but the replacement value is not exposed anywhere. In order to write custom CSS that targets the library's widgets, one...
It is often desirable to sort numeric or date columns in descending order, viewing the highest or latest items first. In the Table input, this can only be achieved by...
This repo hasn't been updated in a while. I'd recommend to archive it and point users to https://github.com/vega/vega-embed in the readme.