validateLivePreview method
- dynamic preview,
- dynamic _client,
- dynamic _contentTypeUid
inherited
Implementation
void validateLivePreview(preview, _client, _contentTypeUid) {
if (preview != null && preview['enable']) {
ifLivePreviewEnable(_client);
if (_contentTypeUid == preview['content_type_uid']) {
if (preview.containsKey('live_preview') &&
preview['live_preview'].toString().isNotEmpty) {
parameter['live_preview'] = preview['live_preview'];
} else {
parameter['live_preview'] = 'init';
}
}
}
}