function ddgStruct = getSlimModelReferenceDDG(source, h)
%

% Copyright 2017 The MathWorks, Inc.
% convert Model Block ddg to slim dialog version

    ddgStruct = mdlrefddg(source, h, true);

    %add useful field for Slim Dialog
    ddgStruct.DialogTitle = '';
    ddgStruct.DialogTag = 'ModelReference';
    ddgStruct.DialogMode = 'Slim';
    ddgStruct.EmbeddedButtonSet = {[]};
    ddgStruct.StandaloneButtonSet = {[]};

    %setup close method
    ddgStruct.CloseMethod = 'closeCallback';
    ddgStruct.CloseMethodArgs = {'%dialog'};
    ddgStruct.CloseMethodArgsDT = {'handle'};


    %delete unuseful field for Slim Dialog
    fields = {'HelpMethod', 'HelpArgs', 'DisableDialog'};
    ddgStruct = rmfield(ddgStruct, fields);

end
