MCPcopy Create free account
hub / github.com/microsoft/SandDance / DataScopeButton

Function DataScopeButton

docs/app/js/sanddance-app.js:15207–15223  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15205 }, short(props.count));
15206}
15207function DataScopeButton(props) {
15208 return (0, _base.base).react.createElement((0, _button.Button), {
15209 themePalette: props.themePalette,
15210 className: (0, _sanddanceReact.util).classList("datascope-button", props.selectedDataScope === props.dataScopeId && "selected"),
15211 disabled: props.disabled,
15212 text: props.text,
15213 onClick: ()=>{
15214 props.onDataScopeClick(props.dataScopeId);
15215 },
15216 onRenderText: ()=>{
15217 return (0, _base.base).react.createElement("div", {
15218 title: props.count > 0 ? props.count.toString() : ""
15219 }, (0, _base.base).react.createElement("label", null, props.text), (0, _base.base).react.createElement("div", null, short(props.count)));
15220 },
15221 onRenderIcon: ()=>null
15222 });
15223}
15224
15225},{"./button":"gFWNm","../base":"b6Cy1","../language":"7qvdA","@msrvida/sanddance-react":"4uo3s","d3-format":"e6l2S","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"e6l2S":[function(require,module,exports) {
15226var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 2

shortFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected