ExcelRow.ts 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module wijmo.grid.sheet {
  2. 'use strict';
  3. /**
  4. * Defines the HeaderRow class used to display header information for the bind sheet.
  5. */
  6. export class HeaderRow extends wijmo.grid.Row {
  7. constructor() {
  8. super();
  9. this.isReadOnly = true;
  10. }
  11. }
  12. /**
  13. * Defines the RowColDataCollection class used to store the row and column data for FlexSheet control.
  14. */
  15. export class RowColDataCollection extends wijmo.collections.ObservableArray {
  16. private _szDef = 25;
  17. /**
  18. * Initializes a new instance of a RowColDataCollection class.
  19. *
  20. * @param defaultSize The default size for the collection.
  21. */
  22. constructor(defaultSize?: number){
  23. super();
  24. if(isNumber(defaultSize)){
  25. this._szDef = defaultSize;
  26. }
  27. }
  28. /**
  29. * Gets or sets the default size of elements in this collection.
  30. */
  31. get defaultSize(): number {
  32. return this._szDef;
  33. }
  34. set defaultSize(value: number) {
  35. if (this._szDef !== value) {
  36. this._szDef = asNumber(value, false, true);
  37. }
  38. }
  39. }
  40. }