function enableStatusCB(varargin)
%ENABLESECURITYCB EnableStatus property callback function.

% Copyright 2022 The MathWorks, Inc.

blockName = varargin{1};
maskObj = Simulink.Mask.get(blockName);

% make "SampleTime" edit field visible/invisible based on the value of "EnableStatus"
enableStatus = maskObj.getParameter('EnableStatus').Value;
maskObj.getParameter('SampleTime').Visible = enableStatus;

end