Skip to content

Commit

Permalink
feat(bindgen): add tooltips for demo load sample inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Aug 29, 2023
1 parent b218713 commit 49fc16f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/compare-images/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@
"type": "git",
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm"
}
}
}
2 changes: 1 addition & 1 deletion packages/compress-stringify/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
"type": "git",
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<br />
<sl-input name="data-url-prefix" type="text" label="dataUrlPrefix" help-text="dataURL prefix"></sl-input>
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand All @@ -102,7 +102,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="parse-string">parseString - <i>Parse the input string before decompression</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand Down
2 changes: 1 addition & 1 deletion packages/dicom/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"type": "git",
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm"
}
}
}
12 changes: 6 additions & 6 deletions packages/dicom/typescript/test/browser/demo-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="no-bitmap-output">noBitmapOutput - <i>Do not get resulting image as bitmap output stream.</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand Down Expand Up @@ -167,7 +167,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="disable-correction">disableCorrection - <i>disable automatic data correction</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand Down Expand Up @@ -275,7 +275,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="code-details-tooltip">codeDetailsTooltip - <i>render code details as a tooltip (implies +Cc)</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand Down Expand Up @@ -333,7 +333,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="print-color">printColor - <i>Use ANSI escape codes</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand All @@ -360,7 +360,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<label for="tags-to-read-file"><sl-button name="tags-to-read-file-button" variant="primary" outline onclick="this.parentElement.nextElementSibling.click()">Upload</sp-button></label><input type="file" name="tags-to-read-file" style="display: none"/>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand All @@ -386,7 +386,7 @@ <h3>👨‍💻 Live API Demo ✨</h3>
<sl-checkbox name="single-sorted-series">singleSortedSeries - <i>The input files are a single sorted series</i></sl-checkbox>
<br /><br />
<sl-divider></sl-divider>
<br /><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button>
<br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="loadSampleInputs" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>
<sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />

</form></div>
Expand Down
4 changes: 2 additions & 2 deletions src/bindgen/typescript/demo/interface-functions-demo-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function interfaceFunctionsDemoHtml(interfaceJson, functionName, useCamelCase) {

result += `${prefix}<sl-divider></sl-divider>\n`
const loadSampleInputsId = useCamelCase ? 'loadSampleInputs' : 'load-sample-inputs'
result += `${prefix} <br /><sl-button name="${loadSampleInputsId}" variant="default" style="display: none;">Load sample inputs</sl-button>\n`
result += `${prefix} <br /><sl-tooltip content="Load example input data. This will overwrite data any existing input data."><sl-button name="${loadSampleInputsId}" variant="default" style="display: none;">Load sample inputs</sl-button></sl-tooltip>\n`
result += `${prefix} <sl-button type="button" variant="success" name="run">Run</sl-button><br /><br />
\n`
result += `${prefix}</form></div>\n` // id="${functionName}Inputs"
Expand All @@ -50,4 +50,4 @@ function interfaceFunctionsDemoHtml(interfaceJson, functionName, useCamelCase) {
return result
}

export default interfaceFunctionsDemoHtml
export default interfaceFunctionsDemoHtml

0 comments on commit 49fc16f

Please sign in to comment.