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
|
@@ -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
|
|
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?:
|
|
46
|
+
cellClassifier?: SSCellClassifier;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|