gristlabs / grist-widget

A repository of custom widgets to embed in Grist documents
https://gristlabs.github.io/grist-widget/
Apache License 2.0
58 stars 61 forks source link

Add Drop-down Widget #137

Closed Antol closed 1 month ago

Antol commented 3 months ago

Description

This pull request adds a new Drop-down Widget to the Grist custom widget collection. The widget provides a simple and compact drop-down menu that can be populated with options from a selected column in a Grist document.

Features

Files Added

How to Use

  1. Add the widget to a Grist document
  2. Select the column to use for options in the widget configuration
  3. The drop-down will populate with values from the selected column
  4. Selecting an option will update the cursor position in linked widgets

This widget aims to provide a straightforward and useful tool for Grist users who need a compact way to navigate through options in their documents.

netlify[bot] commented 3 months ago

Deploy Preview for boisterous-sunburst-a5c941 ready!

Name Link
Latest commit b568e02c195cf5c2812828f5418699ea28a0135a
Latest deploy log https://app.netlify.com/sites/boisterous-sunburst-a5c941/deploys/66faa00e53765e000871826a
Deploy Preview https://deploy-preview-137--boisterous-sunburst-a5c941.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

berhalak commented 2 months ago

Hi @Antol, thanks for contributing.

Can you describe the purpose of this widget, what kind of problems it solves? I also noticed that the dropdown has 100% height and width, which looks surprising, was this your intention?

Antol commented 2 months ago

@berhalak I will quote the August newsletter "Antol Peshkov has created a simple custom dropdown widget that does exactly what it sounds like." Why is 100% height and width surprising? It would take only a small piece of a page to work as a selector. 600x486