有没有办法更改 Material UI TablePagination 组件中的字符串“每页行数”?我找不到任何东西...我只想将其翻译成葡萄牙语以显示在我的网站上。
我有一个 Material UI 自动完成功能,它根据您键入的 3 个字母选择其项目,例如:
您想获取数据库中的所有 Pedro,然后键入“Ped”,它只会为您带来以“Ped”开头的结果。
我希望它只在我输入 3 个字符后显示,并且在数据库中没有找到任何“Ped”,例如:
我试图在道具“noOptionsText”中放置一个条件,但它没有用。有谁知道怎么做?
编辑:不使用freeSolo,选项需要是一个对象
我有以下结构:
type User struct {
ID string `json:"id"`
Name string `json:"name"`
LastName string `json:"lastName"`
User string `json:"user"`
Password string `json:"password"`
Vehicles []Vehicle `json:"vehicles"`
}
type Vehicle struct {
Plate string `json:"plate"`
}
Run Code Online (Sandbox Code Playgroud)
我想在我的 DynamoDB 中存储一系列 Vehicles。我做了一些研究,发现我应该使用以下代码:
input := &dynamodb.PutItemInput{
TableName: aws.String(tableUsers),
Item: map[string]*dynamodb.AttributeValue{
"id": {
S: aws.String(fmt.Sprintf("%v", uuid)),
},
"name": {
S: aws.String(user.Name),
},
"lastName": {
S: aws.String(user.LastName),
},
"user": {
S: aws.String(user.User),
},
"password": {
S: aws.String(user.Password),
},
"vehicles": {
L: [{
M: {
"plate": {S: aws.String("test")},
},
}], …Run Code Online (Sandbox Code Playgroud)