@grafana/ui
Version:
Grafana Components Library
20 lines (16 loc) • 580 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
;
function logOptions(amount, recommendedAmount, id, ariaLabelledBy) {
if (amount > recommendedAmount) {
const msg = `[Combobox] Items exceed the recommended amount ${recommendedAmount}.`;
console.warn(msg, {
itemsCount: "" + amount,
recommendedAmount: "" + recommendedAmount,
"aria-labelledby": ariaLabelledBy != null ? ariaLabelledBy : "",
id: id != null ? id : ""
});
}
}
exports.logOptions = logOptions;
//# sourceMappingURL=logOptions.cjs.map