@univerjs/sheets-ui 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1274,16 +1274,19 @@ var FRangeSheetsUIMixin = class extends FRange {
1274
1274
  } };
1275
1275
  }
1276
1276
  /**
1277
- * attachDOMPopup
1277
+ * attachRangePopup
1278
1278
  * @param popup
1279
1279
  * @returns {IDisposable} disposable
1280
- let sheet = univerAPI.getActiveWorkbook().getActiveSheet();
1281
- let range = sheet.getRange(2, 2, 3, 3);
1282
- univerAPI.getActiveWorkbook().setActiveRange(range);
1283
- let disposable = range.attachDOMPopup({
1284
- componentKey: 'univer.sheet.single-dom-popup',
1285
- extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },
1286
- });
1280
+ * @example
1281
+ * ```typescript
1282
+ * let sheet = univerAPI.getActiveWorkbook().getActiveSheet();
1283
+ * let range = sheet.getRange(2, 2, 3, 3);
1284
+ * univerAPI.getActiveWorkbook().setActiveRange(range);
1285
+ * let disposable = range.attachRangePopup({
1286
+ * componentKey: 'univer.sheet.single-dom-popup',
1287
+ * extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },
1288
+ * });
1289
+ * ```
1287
1290
  */
1288
1291
  attachRangePopup(popup) {
1289
1292
  var _popup$direction2, _popup$extraProps2, _popup$offset2;