Commit | Line | Data |
---|---|---|
e824642a TO |
1 | <!-- (1) Encapsulate some common options. (2) Work-around issues with propagating updates to 'readOnly'/'disabled' property. --> |
2 | <div ng-if="options.disabled" | |
eb034ae1 TO |
3 | crm-monaco="{crmHeightPct: options.crmHeightPct, language: options.language, wordWrap: 'wordWrapColumn', wordWrapColumn: 100, wordWrapMinified: false, wrappingIndent: 'indent', readOnly: true}" |
4 | ng-model="options.record[options.field]"> | |
e824642a TO |
5 | </div> |
6 | <div ng-if="!options.disabled" | |
eb034ae1 | 7 | crm-monaco="{crmHeightPct: options.crmHeightPct, language: options.language, wordWrap: 'wordWrapColumn', wordWrapColumn: 100, wordWrapMinified: false, wrappingIndent: 'indent'}" |
e824642a TO |
8 | ng-model="options.record[options.field]"> |
9 | </div> |