Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
372 views
in Technique[技术] by (71.8m points)

reactjs - How to make the asterisk(*) in <TextValidator> float to right?

I'm using TextValidator from 'react-material-ui-form-validator' and Grid from '@material-ui/core/Grid' and I have multiple fields to compress in a single row.

ReactJS UI - TextValidator

I know I can shorten the label description to solve my problem, however I can't.

                <Grid item xs={12} sm={1}>
                    <TextValidator
                        required
                        id="AbcdefKey"                
                        name="AbcdefKey"
                        validators={['required', 'isPositive']}
                        errorMessages={['this field is required','Must be numeric and greater than zero']}                
                        fullWidth
                        value="1111"          
                        label="AbcdefKey"
                    />  
                </Grid>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...