We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae0710 commit 9c45812Copy full SHA for 9c45812
docs/spfx/extensions/get-started/building-simple-field-customizer.md
@@ -219,12 +219,14 @@ Now that we have successfully tested the out-of-the-box starting point of the Fi
219
public onRenderCell(event: IFieldCustomizerCellEventParameters): void {
220
221
event.domElement.classList.add(styles.cell);
222
- event.domElement.innerHTML = `
+ if (typeof event.fieldValue != 'undefined' && event.fieldValue) { // for folder fieldValue is "".
223
+ event.domElement.innerHTML = `
224
<div class='${styles.full}'>
225
<div style='width: ${event.fieldValue}px; background:#0094ff; color:#c0c0c0'>
226
${event.fieldValue}
227
</div>
228
</div>`;
229
+ }
230
}
231
```
232
0 commit comments