11import React from "react" ;
2-
2+ import TextField from '@material-ui/core/TextField' ;
33import FontIcon from "@material-ui/core/Icon" ;
44import CardContent from "@material-ui/core/CardContent" ;
55import { BottomNavigation , BottomNavigationAction } from "@material-ui/core" ;
@@ -14,6 +14,7 @@ import MenuItem from "@material-ui/core/MenuItem";
1414import {
1515 NetPyNESelectField ,
1616 NetPyNEField ,
17+ NetPyNETextField ,
1718 ListComponent ,
1819 NetPyNECoordsRange
1920} from "netpyne/components" ;
@@ -155,7 +156,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
155156 </ NetPyNEField >
156157
157158 < NetPyNEField id = { "netParams.connParams.synMech" } >
158- < SelectField
159+ < NetPyNESelectField
159160 model = {
160161 "netParams.connParams['" + this . props . name + "']['synMech']"
161162 }
@@ -171,61 +172,31 @@ export default class NetPyNEConnectivityRule extends React.Component {
171172 </ NetPyNEField >
172173
173174 < NetPyNEField id = "netParams.connParams.convergence" >
174- < TextField
175- model = {
176- "netParams.connParams['" + this . props . name + "']['convergence']"
177- }
178- />
175+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['convergence']" } />
179176 </ NetPyNEField >
180177
181178 < NetPyNEField id = "netParams.connParams.divergence" >
182- < TextField
183- model = {
184- "netParams.connParams['" + this . props . name + "']['divergence']"
185- }
186- />
179+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['divergence']" } />
187180 </ NetPyNEField >
188181
189182 < NetPyNEField id = "netParams.connParams.probability" >
190- < TextField
191- model = {
192- "netParams.connParams['" + this . props . name + "']['probability']"
193- }
194- />
183+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['probability']" } />
195184 </ NetPyNEField >
196185
197186 < NetPyNEField id = "netParams.connParams.synsPerConn" >
198- < TextField
199- model = {
200- "netParams.connParams['" + this . props . name + "']['synsPerConn']"
201- }
202- />
187+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['synsPerConn']" } />
203188 </ NetPyNEField >
204189
205190 < NetPyNEField id = "netParams.connParams.weight" >
206- < TextField
207- model = {
208- "netParams.connParams['" + this . props . name + "']['weight']"
209- }
210- />
191+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['weight']" } />
211192 </ NetPyNEField >
212193
213- < NetPyNEField
214- id = "netParams.connParams.delay"
215- className = "listStyle"
216- noStyle
217- >
218- < TextField
219- model = { "netParams.connParams['" + this . props . name + "']['delay']" }
220- />
194+ < NetPyNEField id = "netParams.connParams.delay" >
195+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['delay']" } />
221196 </ NetPyNEField >
222197
223198 < NetPyNEField id = "netParams.connParams.plasticity" >
224- < TextField
225- model = {
226- "netParams.connParams['" + this . props . name + "']['plasticity']"
227- }
228- />
199+ < NetPyNETextField model = { "netParams.connParams['" + this . props . name + "']['plasticity']" } />
229200 </ NetPyNEField >
230201 { dialogPop }
231202 </ div >
@@ -234,7 +205,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
234205 var content = (
235206 < div >
236207 < NetPyNEField id = { "netParams.connParams.preConds.pop" } >
237- < SelectField
208+ < NetPyNESelectField
238209 model = {
239210 "netParams.connParams['"
240211 + this . props . name
@@ -246,7 +217,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
246217 />
247218 </ NetPyNEField >
248219 < NetPyNEField id = { "netParams.connParams.preConds.cellModel" } >
249- < SelectField
220+ < NetPyNESelectField
250221 model = {
251222 "netParams.connParams['"
252223 + this . props . name
@@ -258,7 +229,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
258229 />
259230 </ NetPyNEField >
260231 < NetPyNEField id = { "netParams.connParams.preConds.cellType" } >
261- < SelectField
232+ < NetPyNESelectField
262233 model = {
263234 "netParams.connParams['"
264235 + this . props . name
@@ -308,7 +279,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
308279 var content = (
309280 < div >
310281 < NetPyNEField id = { "netParams.connParams.postConds.pop" } >
311- < SelectField
282+ < NetPyNESelectField
312283 model = {
313284 "netParams.connParams['"
314285 + this . props . name
@@ -320,7 +291,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
320291 />
321292 </ NetPyNEField >
322293 < NetPyNEField id = { "netParams.connParams.postConds.cellModel" } >
323- < SelectField
294+ < NetPyNESelectField
324295 model = {
325296 "netParams.connParams['"
326297 + this . props . name
@@ -332,7 +303,7 @@ export default class NetPyNEConnectivityRule extends React.Component {
332303 />
333304 </ NetPyNEField >
334305 < NetPyNEField id = { "netParams.connParams.postConds.cellType" } >
335- < SelectField
306+ < NetPyNESelectField
336307 model = {
337308 "netParams.connParams['"
338309 + this . props . name
0 commit comments