Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render() {
return (
<div style="{{">
<div style="{{">
<select>
<option value="{SelectionMode.Single}"> Single </option>
<option value="{SelectionMode.SingleAllowDeselect}"> SingleAllowDeselect </option>
<option value="{SelectionMode.Multiple}"> Multiple </option>
<option value="{SelectionMode.Extended}"> Extended </option>
</select>
</div>
<div style="{{">
</div>
</div>
);
}
}
public render(): React.ReactNode {
return (
<div style="{{">
<div style="{{">
<select>
<option value="{SelectionMode.Single}"> Single </option>
< option value={SelectionMode.SingleAllowDeselect} > SingleAllowDeselect
< option value={SelectionMode.Multiple} > Multiple
< option value={SelectionMode.Extended} > Extended
</select>
<select>
<option value="{TableSelectionTarget.Row}"> Row </option>
< option value={TableSelectionTarget.Cell} > Cell
</select>
<label>
Top row:
<input style="{{">
<span>({this.state.topRow})</span>
</label>
</div>
<div style="{{">
</div></div>
public render() {
return (
<div style="{{">
</div>
);
}
}
private _onChangeSelectionMode = (e: React.ChangeEvent) => {
let selectionMode: SelectionMode;
switch (e.target.value) {
case "1":
selectionMode = SelectionMode.Single;
break;
case "5":
selectionMode = SelectionMode.SingleAllowDeselect;
break;
case "6":
selectionMode = SelectionMode.Multiple;
break;
case "12":
selectionMode = SelectionMode.Extended;
break;
default: selectionMode = SelectionMode.Single;
}
this.setState({ selectionMode });
}
private _onChangeSelectionMode = (e: React.ChangeEvent) => {
let selectionMode: SelectionMode;
switch (e.target.value) {
case "1":
selectionMode = SelectionMode.Single;
break;
case "5":
selectionMode = SelectionMode.SingleAllowDeselect;
break;
case "6":
selectionMode = SelectionMode.Multiple;
break;
case "12":
selectionMode = SelectionMode.Extended;
break;
default: selectionMode = SelectionMode.Single;
}
this.setState({ selectionMode });
}
public render() {
return (
<div>
<div>
<h3>{IModelApp.i18n.translate("Sample:controls.find-similar.results")}</h3>
<button>
{IModelApp.i18n.translate("Sample:controls.find-similar.dismiss-button.label")}
</button>
</div>
<div>
</div>
</div>
);
}
}