-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inlineEditField Sample? #694
Comments
Dear Mr. @sympmarc, I don't know if below sample can simplify and help users to make better use of Thank you for your attention.
|
That's great, @aaclage! That's exactly the improvement I was looking for. That isn't a sample in the repo today, is it? IMO, it should be. |
Normally, this type of sample you can find in json mix with custom solutions and not dedicated sample. Maybe it could be 💡 for regular contributers: |
I cleaned this up a little, as I saw some weird behavior on scroll. {
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"children": [
{
"elmType": "div",
"children": [
{
"elmType": "div",
"style": {
"cursor": "pointer",
"flex-wrap": "wrap",
"display": "flex",
"align-items": "left"
},
"inlineEditField": "@currentField",
"children": [
{
"elmType": "div",
"txtContent": "@currentField"
},
{
"elmType": "div",
"style": {
"margin": "5px"
},
"attributes": {
"iconName": "Edit"
},
"customCardProps": {
"openOnEvent": "hover",
"directionalHint": "topCenter",
"isBeakVisible": true,
"formatter": {
"elmType": "div",
"style": {
"padding": "10px"
},
"txtContent": "Edit content"
}
}
}
]
}
]
}
]
} |
Great, thanks for the cleaning. |
Sample (which sample are you talking about)
NA
Suggestion (the more details, the better)
As far as I can see, there aren't many
inlineEditField
samples. The main thing I'm finding with this is that our end users don't have any idea it's there. I'm trying to come up with what amounts to a toggle to sort of turn it on and off for the Title field.This json works and shows the Title with the pencil to the right of it. Clicking on the pencil doesn't do anything, though. What it does do is bring the "editability" of the Title to the user's attention.
I'll continue to work on this, but if anyone has already climbed this hill, it would be great to get a nice, simple sample into the repo.
The text was updated successfully, but these errors were encountered: