Giter Club home page Giter Club logo

vscode-data-grid-cell-render-newlines's Introduction

Data Grid Cell: Render Newlines Demo

This is a demonstration of a potential feature change for the @vscode/webview-ui-toolkit that will enable newlines to be rendered in vscode-data-grid-cell components. Currently any whitespaces and newlines in data grid cell content are collapsed.

This demo is built on top of the editable-data-grid sample extension and has been made to explicitly test this new feature against a data grid that implements interactivity/editability via the contenteditable attribute.

Run the sample

  1. Clone the repo locally
  2. Navigate into the demo directory (cd vscode-data-grid-cell-render-newlines)
  3. DO NOT RUN NPM INSTALL!*
  4. Open demo in VS Code (code .)

*The node_modules directory has been intentionally included in this repo and contains an altered version/build of the @vscode/webview-ui-toolkit package with the new feature changes.

Once the sample is open inside VS Code you can run the extension by doing the following:

  1. Press F5 to open a new Extension Development Host window
  2. Inside the host window, open the command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and type Data Grid Cell Newlines: Show

What to test

The primary user flow to test is:

  • Select a data grid cell (either by click with mouse or click enter when focused)
  • Type in some new content into the cell
  • Then click Shift + Enter to render a newline

Beyond that, please try all the different combos of editing. Try and break it!

Known issue: There is still a known issue that when in edit mode you cannot use arrow keys to navigate to different positions within some text. Instead arrow keys will select the next data grid cell over. To navigate to a new position within the cell text, you must you your mouse to click a new position in the text.

vscode-data-grid-cell-render-newlines's People

Contributors

hawkticehurst avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.