x4js 2.2.12 → 2.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.2.12",
3
+ "version": "2.2.13",
4
4
  "type": "module",
5
5
  "main": "src/x4.ts",
6
6
  "module": "src/x4.ts",
@@ -42,4 +42,5 @@ export * from "./textedit/textedit"
42
42
  export * from "./tickline/tickline"
43
43
  export * from "./tooltips/tooltips"
44
44
  export * from "./treeview/treeview"
45
+ export * from "./video/video"
45
46
  export * from "./viewport/viewport"
@@ -139,4 +139,20 @@ export class Radio extends Component<RadioProps,RadioEvents> {
139
139
  getValue( ) {
140
140
  return this._input.getValue( );
141
141
  }
142
+
143
+ /**
144
+ * check the corresponding value in the item group
145
+ * you can call this method on any element of the group
146
+ *
147
+ * ie: A, B, C, D, E
148
+ * A.checkValue( "E" ) is ok, as E.CheckValue("E" )
149
+ */
150
+
151
+ checkValue( vname: string ) {
152
+ const grp = this.props.name;
153
+ const el = this.parentElement().query<Radio>( `input[name="${grp}"][value="${vname}"]` );
154
+ if( el ) {
155
+ el.setCheck( true );
156
+ }
157
+ }
142
158
  }
@@ -38,12 +38,12 @@ interface CellRef {
38
38
  row: number;
39
39
  }
40
40
 
41
- export type CellClassifier = ( row: number, col: number ) => string; // return the cell computed class
41
+ export type SSCellClassifier = ( row: number, col: number ) => string; // return the cell computed class
42
42
  export type RowClassifier = (row: number ) => string; // return the row computed class
43
43
  //export type CellRenderer = (row: number, col: number, content: any) => Component;
44
44
 
45
45
  export interface SpreadsheetColumn extends Omit<GridColumn,"classifier"> {
46
- cellClassifier?: CellClassifier;
46
+ cellClassifier?: SSCellClassifier;
47
47
  }
48
48
 
49
49