CL-web-components

Current the CL-web-components can be downloaded from the GitHub, https://github.com/caltechlibrary/CL-web-components, or import as ES6 Modules from https://caltechlibrary.github.io/CL-web-components followed by the module’s JavaScript filename.

The csv-textarea web component is importable using import { CSVTextarea } from 'https://caltechlibrary.github.io/CL-web-components/csvtextarea.js';. You can import it into your HTML document using an ES6 script element in your web page, <script type="module" src="https://caltechlibrary.github.io/CL-web-components/csvtextarea.js"></script>.

The a-to-z-ul web component is importable using import { AtoZUL } from 'https://caltechlibrary.github.io/CL-web-components/a_to_z_ul.js';. You can import it into your HTML document using an ES6 script element in your web page, <script type="module" src="https://caltechlibrary.github.io/CL-web-components/a_to_z_url.js"></script>.

A third module is available called parseCSV.js. This is used by CSVTextarea. It provides stringify and parse methods for CSV content.