|
124 | 124 | --> |
125 | 125 | <script src="https://unpkg.com/@popperjs/core@2"></script> |
126 | 126 | <script src="https://unpkg.com/tippy.js@6"></script> |
127 | | - |
128 | | - |
129 | | -<div id="inline-help-items" style="display:none"> |
130 | | - |
131 | | - <div data-name="test-data-summary-title"> |
132 | | - <p>The Test Data section allows you to randomly generate data to populate the grid. You can then export to the various supported formats.</p> |
133 | | - <p><a class="helplink" href="/docs/test-data/test-data-generation" target="anywaydatadocs">Learn more</a></p> |
134 | | - </div> |
135 | | - |
136 | | - <div data-name="import-export-controls"> |
137 | | - <p>Using the import and export controls you can:</p> |
138 | | - <ul> |
139 | | - <li>"Set Text From Grid"<br> to refresh the text box for the chosen output format.</li> |
140 | | - <li>"Set Grid From Text"<br> to <a class="helplink" href="/docs/editing-data/text-editing" target="anywaydatadocs">import the text box content</a> into the grid.</li> |
141 | | - <li>"Choose File"<br> to <a class="helplink" href="docs/editing-data/import-from-file" target="anywaydatadocs">import a text file</a> of the chosen format.</li> |
142 | | - <li>"Download File"<br> to <a class="helplink" href="docs/editing-data/exporting-data" target="anywaydatadocs">export the Data Grid</a> items in the chosen format.</li> |
143 | | - <li>"Drag and Drop File"<br> to <a class="helplink" href="docs/editing-data/import-from-file" target="anywaydatadocs">import the file</a> contents using the currently chosen format.</li> |
144 | | - </ul> |
145 | | - <p>The options shown depend on the output type, some types are not supported for input and so only the output options will be shown.</p> |
146 | | - </div> |
147 | | - |
148 | | - <!-- Data Format Options --> |
149 | | - <div data-name="markdown-table-options"> |
150 | | - <p>Export the table data as <a class="helplink" href="docs/data-formats/markdown/markdown" target="anywaydatadocs">Markdown</a>, a human readable format which can be easily converted to HTML or PDF.</p> |
151 | | - <p>Choose from the list of <a class="helplink" href="docs/data-formats/markdown/options" target="anywaydatadocs">formatting options</a> and press the [Apply] button to render the data in the chosen style.</p> |
152 | | - <p><a class="helplink" href="docs/data-formats/markdown/options" target="anywaydatadocs">Learn more</a></p> |
153 | | - </div> |
154 | | - |
155 | | - <div data-name="ascii-table-options"> |
156 | | - <p>Export the table data as Ascii Table suitable for adding to an email or text file.</p> |
157 | | - <p>Choose from a list of predefined formats and press the [Apply] button to render the table in the chosen style.</p> |
158 | | - <p><a class="helplink" href="docs/data-formats/ascii-tables/options" target="anywaydatadocs">Learn more</a></p> |
159 | | - </div> |
160 | | - |
161 | | - <div data-name="csv-options"> |
162 | | - <p>Export the table data as <a class="helplink" href="docs/data-formats/csv/csv" target="anywaydatadocs">CSV (Comma Separated Values)</a> suitable for importing into a spreadsheet.</p> |
163 | | - <p>Choose from the formatting options and press the [Apply] button to render the data in the chosen style.</p> |
164 | | - <p><a class="helplink" href="docs/data-formats/csv/options" target="anywaydatadocs">Learn more</a></p> |
165 | | - </div> |
166 | | - |
167 | | - <div data-name="delimiter-options"> |
168 | | - <p>Export the table data as a <a class="helplink" href="docs/data-formats/delimited/delimited" target="anywaydatadocs">Delimited</a> output suitable for importing or copy and pasting into a spreadsheet.</p> |
169 | | - <p>Choose from the formatting options and press the [Apply] button to render the data in the chosen style.</p> |
170 | | - <p><em>Hint: Use Tab delimiter if copying into another table editing application like a spreadsheet.</em></p> |
171 | | - <p><a class="helplink" href="docs/data-formats/delimited/options" target="anywaydatadocs">Learn more</a></p> |
172 | | - </div> |
173 | | - |
174 | | - <div data-name="json-options"> |
175 | | - <p>Export the table data as a <a class="helplink" href="docs/data-formats/json/json" target="anywaydatadocs">JSON</a> output suitable for JSON interchange messages e.g. APIs.</p> |
176 | | - <p>Choose from the formatting options and press the [Apply] button to render the JSON in the chosen style.</p> |
177 | | - <p><a class="helplink" href="docs/data-formats/json/options" target="anywaydatadocs">Learn more</a></p> |
178 | | - </div> |
179 | | - |
180 | | - <div data-name="jsonl-options"> |
181 | | - <p>Export the table data as JSON Lines (JSONL), with one JSON object per line and no surrounding array.</p> |
182 | | - <p>JSONL output is always compact single-line records. Number Convert can optionally convert numeric-looking values to numbers.</p> |
183 | | - <p><a class="helplink" href="docs/data-formats/jsonl/jsonl" target="anywaydatadocs">Learn more</a> and see <a class="helplink" href="docs/data-formats/jsonl/options" target="anywaydatadocs">JSONL options</a>.</p> |
184 | | - </div> |
185 | | - |
186 | | - <div data-name="javascript-options"> |
187 | | - <p>Export the table data as a <a class="helplink" href="docs/data-formats/javascript/javascript" target="anywaydatadocs">Javascript</a> output suitable for using in a Javascript application or unit testing code.</p> |
188 | | - <p>Choose from the formatting options and press the [Apply] button to render the Javascript in the chosen style.</p> |
189 | | - <p><a class="helplink" href="docs/data-formats/javascript/options" target="anywaydatadocs">Learn more</a></p> |
190 | | - </div> |
191 | | - |
192 | | - <div data-name="java-options"> |
193 | | - <p>Export the table data as Java code using either anonymous `Map` rows or named class instances.</p> |
194 | | - <p>Configure collection type, variable/class naming, number quoting, blank value handling, imports, and pretty printing before pressing [Apply].</p> |
195 | | - <p><a class="helplink" href="docs/data-formats/java/options" target="anywaydatadocs">Learn more</a></p> |
196 | | - </div> |
197 | | - |
198 | | - <div data-name="python-options"> |
199 | | - <p>Export the table data as Python code using dictionaries or named class instances.</p> |
200 | | - <p>Configure collection type, variable/class naming, decimal handling, quote style, import statements, and pretty printing before pressing [Apply].</p> |
201 | | - <p><a class="helplink" href="docs/data-formats/python/options" target="anywaydatadocs">Learn more</a></p> |
202 | | - </div> |
203 | | - |
204 | | - <div data-name="typescript-options"> |
205 | | - <p>Export the table data as TypeScript code using anonymous objects or named class instances.</p> |
206 | | - <p>Configure collection type, variable/class naming, blank value handling, number quoting, and pretty printing before pressing [Apply].</p> |
207 | | - <p><a class="helplink" href="docs/data-formats/typescript/options" target="anywaydatadocs">Learn more</a></p> |
208 | | - </div> |
209 | | - |
210 | | - <div data-name="xml-options"> |
211 | | - <p>Export the table data as <a class="helplink" href="docs/data-formats/xml/xml" target="anywaydatadocs">XML</a>, suitable for system integration and data interchange.</p> |
212 | | - <p>Configure root and item element names, optional attributes, XML header, and XML namespace, then press [Apply] to render using those settings.</p> |
213 | | - <p><a class="helplink" href="docs/data-formats/xml/options" target="anywaydatadocs">Learn more</a></p> |
214 | | - </div> |
215 | | - |
216 | | - <div data-name="sql-options"> |
217 | | - <p>Export the table data as SQL INSERT statements for loading data into a table.</p> |
218 | | - <p>Configure table name, max values per INSERT statement, and whether numeric-looking values are quoted.</p> |
219 | | - <p><a class="helplink" href="docs/data-formats/sql/sql" target="anywaydatadocs">Learn more</a> and see <a class="helplink" href="docs/data-formats/sql/options" target="anywaydatadocs">SQL options</a>.</p> |
220 | | - </div> |
221 | | - |
222 | | - <div data-name="gherkin-options"> |
223 | | - <p>Export the table data as <a class="helplink" href="docs/data-formats/gherkin/gherkin" target="anywaydatadocs">Gherkin</a>, a human readable format used in BDD automation.</p> |
224 | | - <p>The <a class="helplink" href="docs/data-formats/gherkin/options" target="anywaydatadocs">formatting options</a> help pretty print the output to fit in the specification.</p> |
225 | | - <p><a class="helplink" href="docs/data-formats/gherkin/options" target="anywaydatadocs">Learn more</a></p> |
226 | | - </div> |
227 | | - |
228 | | - <div data-name="html-table-options"> |
229 | | - <p>Export the table data as a <a class="helplink" href="docs/data-formats/html/html-tables" target="anywaydatadocs">HTML Table</a> suitable for adding to a web page.</p> |
230 | | - <p>Choose from the formatting options and press the [Apply] button to render the data as HTML code.</p> |
231 | | - <p>Import any HTML code by pasting the `table` contents into the text area and pressing `Set Grid From Text`</p> |
232 | | - <p><a class="helplink" href="docs/data-formats/html/options" target="anywaydatadocs">Learn more</a></p> |
233 | | - </div> |
234 | | - |
235 | | -</div> |
236 | | - |
237 | 127 | <script> |
238 | | - |
239 | | - function updateHelpHints(){ |
240 | | - tippy('.helpicon[data-help]', { |
241 | | - content(reference) { |
242 | | - const id = reference.getAttribute('data-help'); |
243 | | - const inlineHelpText = reference.getAttribute('data-help-text'); |
244 | | - if (inlineHelpText) { |
245 | | - return inlineHelpText; |
246 | | - } |
247 | | - |
248 | | - // look up help text |
249 | | - const helpItems = document.getElementById("inline-help-items"); |
250 | | - if (!helpItems || !id) { |
251 | | - return ''; |
252 | | - } |
253 | | - const helpText = helpItems.querySelector(`div[data-name='${id}']`); |
254 | | - |
255 | | - // return help text |
256 | | - if(helpText){ |
257 | | - return helpText.innerHTML; |
258 | | - } |
259 | | - |
260 | | - console.log("TODO: Create help for " + id); |
261 | | - return ''; |
262 | | - }, |
263 | | - placement: 'top-start', |
264 | | - allowHTML: true, |
265 | | - interactive: true, |
266 | | - } |
267 | | - ); |
268 | | - } |
269 | | - |
270 | | - |
271 | | - window.addEventListener('load', (event) => { |
272 | | - document.getElementById("initial-load").remove(); |
273 | | - updateHelpHints(); |
274 | | -}); |
| 128 | + document.getElementById('initial-load')?.remove(); |
275 | 129 | </script> |
276 | 130 |
|
277 | 131 |
|
|
0 commit comments