validateLivePreview method

void validateLivePreview(
  1. dynamic preview,
  2. dynamic _client,
  3. 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';
      }
    }
  }
}