Select to view content in your preferred language

Attribute Inspector - Text Area Font

1388
2
Jump to solution
09-26-2014 06:42 AM
ChrisHolmes
Frequent Contributor

Hello, I have a text area for a field displaying in the attribute inspector. It displays with a different font than the other fields. What do I need to add to change the font?

textareafont.PNG

Do I need to add something here?

               var layerInfos = [{ 

                'featureLayer': selectedTemplate.featureLayer, 

                'isEditable': true, 

                'showAttachments': true,   

                fieldInfos: [   

                  { fieldName: "NAME", label: "NAME:", isEditable: true },   

                  { fieldName: "EMAIL", label: "EMAIL:", isEditable: true },   

                  { fieldName: "PHONE", label: "PHONE:", isEditable: true },   

                  { fieldName: "CITIZEN_COMMENT", label: "COMMENT:", isEditable: true, 'stringFieldOption': 'textarea' }                     

                ]   

              }];

Thanks,

Chris

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JonathanUihlein
Esri Regular Contributor

Use CSS:

.esriAttributeInspector .atiTextAreaField {

    font-family: whatever-font-you-want;

}

View solution in original post

0 Kudos
2 Replies
JonathanUihlein
Esri Regular Contributor

Use CSS:

.esriAttributeInspector .atiTextAreaField {

    font-family: whatever-font-you-want;

}

0 Kudos
ChrisHolmes
Frequent Contributor

Thanks Jonathan!

0 Kudos